-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Feature request: add manpage (troff) support #342
Comments
The manpage support in Asciidoctor requires that you write the manpage in AsciiDoc. It will then display it similar to how it looks in the man pager. There's also a converter on the way to generate the groff output, so the AsciiDoc becomes the single source of truth. However, Asciidoctor itself does not read or process groff. There are gems available that read groff and generate HTML, though. |
Hi Dan! On Aug 4, 2014, at 12:45 PM, Dan Allen notifications@github.com wrote:
Hmm…
That would be nice! The one thing that I could think of that would cause problems is man pages which use custom macros to denote OS, release, etc, where it could mislead readers (do other formats have non-self-contained custom directives?). This seems like an edge case and not the norm though. Thanks :)! |
@mojavelinux: What ruby gems do you recommend using for taking a troff document and rendering I've been looking for something, but mostly what I have found are Perl scripts
This utility can render HTML directly from troff: but without a nice stylesheet, the output looks boring. I agree with @yaneurabeya that having Github be able to render man pages directly from checked in sources would be very nice. Large projects like FreeBSD which have code checked into github are not going to redo all their man pages in asciidoctor or other markup languages. |
Honestly, I wouldn't know more than just poking around the 'net. I looked a |
Thanks for the feature request. We are actively adding new markup formats at this time, but you are welcome to submit a pull request to add support for it and we will consider it. |
It would be nice if there was a way to render manpages in GitHub so one could look at documentation checked in.
It seems that some Ruby asciidoc renders allow manpage backends to be enabled ( http://asciidoctor.org/docs/render-documents/ ), but that support doesn't seem to be enabled/present on GitHub (see this example for more details: https://github.com/yaneurabeya/scratch/blob/master/testing/intro.1 ). Could this support be added to github/markup?
The text was updated successfully, but these errors were encountered: