GithubHelp home page GithubHelp logo

Provide an option to view raw about markserv HOT 15 OPEN

markserv avatar markserv commented on May 16, 2024
Provide an option to view raw

from markserv.

Comments (15)

F1LT3R avatar F1LT3R commented on May 16, 2024 1

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

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

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.

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

Not sure. Can you provide a little more detail?

from markserv.

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

This is interesting. How are you updating the files?

from markserv.

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

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.

sushruth avatar sushruth commented on May 16, 2024

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.

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

Interesting idea.

markserv/markserv-cli#3

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

from markserv.

sushruth avatar sushruth commented on May 16, 2024

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.

F1LT3R avatar F1LT3R commented on May 16, 2024

Np, thanks for the great ideas.

from markserv.

sushruth avatar sushruth commented on May 16, 2024

Thanks for the whole thing, @F1LT3R !

from markserv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.