Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an option to view raw #5

Open
sushruth opened this issue Oct 25, 2016 · 15 comments
Open

Provide an option to view raw #5

sushruth opened this issue Oct 25, 2016 · 15 comments

Comments

@sushruth
Copy link
Contributor

I do not serve my markdown files from my own machine. I set up a server instance in my company's cloud to host my markdown. I would really like an option to "download" or "view raw" of the rendered markdown I am looking at. Any chance you may implement this?

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 25, 2016

@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.

@sushruth
Copy link
Contributor Author

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)

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 25, 2016

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?

@sushruth
Copy link
Contributor Author

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 ?

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 27, 2016

Not sure. Can you provide a little more detail?

@sushruth
Copy link
Contributor Author

sushruth commented Oct 27, 2016

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 :)

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 27, 2016

This is interesting. How are you updating the files?

@sushruth
Copy link
Contributor Author

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. :)

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 27, 2016

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?

@sushruth
Copy link
Contributor Author

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.

@sushruth
Copy link
Contributor Author

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 ?

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 27, 2016

Interesting idea.

markserv/markserv-cli#3

Also.. you could use something like Expandrive, though I think it costs money.

@sushruth
Copy link
Contributor Author

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 !

@F1LT3R
Copy link
Collaborator

F1LT3R commented Oct 27, 2016

Np, thanks for the great ideas.

@sushruth
Copy link
Contributor Author

Thanks for the whole thing, @F1LT3R !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants