-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Man page renderer #216
Comments
Also wanted to reference #149. It might take some thought and careful design to make sure that the rendering interface is sufficiently general in order to support the constraints of the format: limited formatting options, no images, limited colors, and so on. |
I would love this as well. |
Hmm, this is an interesting idea, although That said, alternate backends have been merged into master (#507) so it's actually really easy to create your own backend and plug it into mdbook! You can use the mdbook-epub backend as an example of how this is done. There's also a page explaining it in the user guide. |
I arrived at this open ticket because I had been pondering the use-case of adding a man page from all of the markdown I'm building to a clap-based cli. The markdown has a bunch of great detail, examples, use-cases, etc. which would be fantastic in a man page. That way, users of the cli do not actually need to go back to any particular website (or actually pull the repo and build locally) to figure out how to use the cli. It can all be "built-in" similar to |
It would be absolutely lovely if there was a man page renderer for mdbook. It would be huge for me to be able to read the rust documentation in a terminal window.
Also, it would be awesome if rust binary crate authors could write command documentation in markdown and be able to turn it it into well formatted man pages.
Here's an example of a tool called ronn that does this: http://rtomayko.github.io/ronn
It's written in ruby, but it has some good ideas for how to transform markdown into man pages.
The text was updated successfully, but these errors were encountered: