Comments (15)
@sushruth I am implementing this soon (next couple of weeks)
I have some of my own ideas on how this should work, but I'd love to hear how you think it should work.
I will yake your ideas into consideration as I implement HTML export.
from markserv.
Thank you, I was also wondering if you could show "permalink" icon beside each heading. Will be easy to share links. While on the topic of permalinks for headings, would be real nice to reproduce a whole section under a heading from a different MD file. While on the topic of updating files, could be amazing to have a API like access to files and/or a command-line tool.
(I know I am running around with a lot of possibly tedious and useless ideas but here they are anyway)
from markserv.
Thank you, I was also wondering if you could show "permalink" icon beside each heading.
Yes, great point. Added: markserv/markserv-cli#1
would be real nice to reproduce a whole section under a heading from a different MD file
Agreed. Added: markserv/markserv-cli#2
could be amazing to have a API like access to files and/or a command-line tool.
Not sure what you mean. Can you give me example(s) of how you might use this?
from markserv.
About the CLI tool, assume there is a tool which we can use like markserv update performance.md
from a local directory, which can contact markserv to update file in the server (when server is not the same machine as what I use), maybe only when ssh-key logins are enabled, you know for security, so that we dont have to go ssh into the server and then update the file there. Am I making sense ?
from markserv.
Not sure. Can you provide a little more detail?
from markserv.
Okay, Here is a scenario :
I am a developer working on my machine in my organization. I have a VM in my organization's cloud, which is where my markserv installation is, as of now. I have run markserv on a particular directory in that VM on a particular Port. I am using it as a pseudo-wiki for what I do, for myself. With no intention of the organization. Every single time I have a local file that needs to be updated in the VM's folder, which in fact is not on my machine, I need to SSH into the VM instance and then update that file.
So, I was wondering, if we could have a small batch script or simple command line tool for markserv that I can install in my machine like npm i -g markserv-updater
and then use that tool to contact that VM instance and update that file for me. like this maybe : markserv-updater **/**.md
from a directory, probably which has a markserv.json in it to provide information about where and how to contact the markserv installation, and then update the files.
I think you can drop this if it sounds too complicated but hope this is not that complicated to implement :)
from markserv.
This is interesting. How are you updating the files?
from markserv.
currently SSH'ing into the VM and then doing a quick rm filename.md
and then vi filename.md
and pasting the contents. For every change. Yep. :)
from markserv.
I see!
I think I could implement what you are talking about using the following package: https://github.com/serkanyersen/sync
In the meantime... what editor are you using?
from markserv.
I use VSCODE. Oh yeah that makes sense too, to make it a plugin for editors. And yes, I could use Sync but i dont really want to monitor it always. I just need a 'as-needed-basis' thing.
from markserv.
You know all of this would not be needed if we could just edit the file right in the browser. Maybe thats a better way ?
from markserv.
Interesting idea.
Also.. you could use something like Expandrive, though I think it costs money.
from markserv.
Well, then I don't even have to look at it. Not gonna be allowed in a company! But I could use it personally, which I don't need to right now. Thanks, @F1LT3R !
from markserv.
Np, thanks for the great ideas.
from markserv.
Thanks for the whole thing, @F1LT3R !
from markserv.
Related Issues (20)
- Add option to disable LiveReload HOT 1
- Unable to run multiple instance of markserv HOT 1
- bad links in HTML HOT 1
- non-existent pages return HTTP 200 code HOT 1
- AsciiMath Support Possibility via markdown-it-asciimath
- how to run markserv background,not automatic open web browse?
- support vimwiki style links. HOT 2
- howto add new language module HOT 1
- no favicon HOT 1
- URL-encode spaces in links HOT 1
- LiveReload is only enabled for base file HOT 1
- Dependencies warnings
- Serve single file HOT 2
- feature: Do not render Front Matter
- Feature Request: Markdown wiki link extension support? HOT 1
- Feature request: please support SUMMARY.md
- ENOSPC: System limit for number of file watchers reached HOT 2
- Enable math env like github flavoured markdown.
- Math errors with newlines and standalone $'s
- Table of content generation does not respect headers in includes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markserv.