lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Use lowdown(1), not mrkd, to generate man pages from Markdown

Open rustyrussell opened this issue 1 year ago • 6 comments

mrkd is pretty bad, complicates dependencies.

We could use lowdown, and also reformat our pages a bit to make them prettier and more consistent.

Command is something like:

lowdown -s --out-no-smarty -Tman -m "title:LIGHTNINGD-CONFIG" -m "section:5" -m "shiftheadinglevelby:-1"

rustyrussell avatar Jul 18 '22 02:07 rustyrussell

Concept ack.

BTW what is the milestone 22.10? should like a TODO :)

vincenzopalazzo avatar Jul 18 '22 09:07 vincenzopalazzo

I'm hoping this can be done for v0.12 because mrkd is a serious headache obstructing packaging CLN in Fedora and EPEL. I need to package all the deps for offline builds and there are policies against more than one version of a package which makes mrkd dead in the water.

wtogami avatar Jul 19 '22 08:07 wtogami

Is there a reason for the whitespace changes to be ignored? Seems like the example changes in https://github.com/rustyrussell/lightning/commit/fcf882d1bb63208c3ebb5e6ad1a4e9837a919731 might be harder to read than when using mrkd. Or is that something to be fixed later with "also reformat our pages a bit to make them prettier and more consistent"?

grubles avatar Jul 21 '22 14:07 grubles

ACK, switching to lowdown was trivial on my linux distro and it seemed to work ok

jb55 avatar Jul 21 '22 16:07 jb55

OTOH, this is not a regression since previous versions; it has long been this way.

rustyrussell avatar Jul 25 '22 01:07 rustyrussell

Chiming in (a little late to the party)… Mrkd is also an obstruction for Gentoo packaging since it fails to work with the current generation of Mistune. Thus, anyone who wants to build CLN with documentation (USE="doc") is forced to have their Mistune downgraded, which may not even be possible if other installed packages strictly depend on a newer version.

Glad to see there's a resolution in the pipeline. :slightly_smiling_face:

whitslack avatar Aug 06 '22 07:08 whitslack