Man page viewer built with web standards #114
Comments
Ah, I just found Mandrake.app, which kind of does this: http://sveinbjorn.org/mandrake Except it’s a native OS X app, so it can’t be used on Linux. |
I like the idea! Do you think this should be a kind of service (website) or more a standalone application? |
Ideally it would just be a web app. But something based on Atom shell would be nice too. |
Do you have a documentation about the man-format? I would start implementing a parser then. |
Some useful resources:
|
Great idea. I actually started doing something like this, I was inspired by an interview with @joestump. The bit that caught my attention...
I wanted to make this easier and better for everyone to do. It would be mobile friendly, provide a reading list and random pages to read. Then as you go you could check them off etc. However, unfortunately I didn't get very far. I did however start reading more man pages :) I would still love to see this happen, so I'd be happy to help. I can dig out the code I started and see if any of it doesn't make my eyes bleed. |
hahaha, sounds good! what of the code is already done? parsing? |
Yeah, I think so. I'm not sure I actually have it tho' - this was several years ago. I can check tonight, but don't let that stop you. It's probably only useful for reference. |
I totally forgot about this until now, I can't find the code I started for it. I'd like to have a go at writing it tho' - have you managed to find time to give it a go? |
Hello, everyone! This issue inspired me to build two projects:
Both projects are still in beta, but everyone is more than welcome to contribute / criticize / help in any way :). |
@roperzh Woah, nice work! 👍 |
Writing man pages by hand is pretty horrible. For this reason, most people auto-generate man pages based on Markdown or something else, nowadays.
But it doesn’t have to be that way.
Imagine having a JavaScript library that takes a man page as a string (e.g. https://github.com/mathiasbynens/luamin/blob/master/man/luamin.1) and renders it as HTML. It would be immensely useful.
Currently the workflow for editing a man page by hand goes something like this:
man ./man-page-source-file.1
.GOTO 1
.Having such a library would make it possible to edit man pages right in the browser, complete with a live preview and everything — the workflow would then be much easier and more efficient. Hipsters around the world would rejoice.
The text was updated successfully, but these errors were encountered: