Lowdown Manpage Support

16 points by dzwdz


acatton

One alternative to lowdown is scdoc

dzwdz

Have you wanted to write a manpage for your library or program but are put off by the complexity of the weird manpage language? Read on.

This has just landed in Lowdown 3.0.0, which released last week. The author is part of the mandoc team, so I expect this to be pretty good.

fanf

This looks like a good way to make it easier to write man pages.

One of the things like about mdoc is the semantic markup makes it very clear what directive I should use in each situation. There are some style conventions that aren’t explicit in the markup, but they are very few and reasonably well documented, and the mandoc linter is good at spotting them. Unlike the old -man macros which are physical markup and rely on undocumented style conventions.

Lightweight markup seems like a regression: in the past I’ve found pod2man isn’t great at producing nicely formatted output because its markup is annoyingly weak. Even markdown is a step up from pod! But I still have to pay attention to which physical markup I should use so the result looks consistent with other man pages.

It looks like lowdown knows more about man page conventions than most other man generators, so (with mandoc lints) I hope it helps the author get things right with less guesswork.

telemachus

I'm all for anything that gets us more manpages since they are much more accessible than a project's README if you are already in a terminal working on something.

It's no longer maintained, but years ago I used Ryan Tomayko's ronn for this. It's the same basic idea, you write a manpage in Markdown (e.g., this one), and ronn turns it into a properly formatted manpage.

pyrmont

It’s great to hear that Lowdown has added this. I’m the creator of an extremely low profile alternative, Predoc, and when I released Predoc last year it was—to the best of my knowledge—the only Markdown flavour that could produce good-looking manpages in semantically correct mdoc (examples). I hope Lowdown’s new support encourages more people to write mdoc-based manpages, they’re great :D

Diti

I personally my documentation in AsciiDoc; you can use the manpage doctype in a document without modification to get a properly-formatted manual page. See the AsciiDoctor documentation about that feature.

jmc

I used pandoc in the past for this purpose.