Search code examples
manpageasciidoc

Valid Asciidoc to convert to Manpage (with a2x)


I want to write the manpage for my CLI-script with Asciidoc and convert it with

a2x --doctype manpage --format manpage MYMANPAGE.ASCIIDOC

I could not find any Asciidoc example out there which can successfully be converted to a manpage with this command. Could you point me to an example or provide one?


Solution

  • Found an example - from the Asciidoc sources itself:

    http://code.google.com/p/asciidoc/source/browse/doc/asciidoc.1.txt

    (Still, more examples for Ascii-doc-formatted manpages very welcome!)