Re: [RFC suggestion] Generate manpage directly with Asciidoctor
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- May 9, 2021, 00:22 UTC
- Message-ID
- <YJcrNXEwNJpB8G/0@camp.crustytoothpaste.net>
- In-Reply-To
- <YJYBOrm2cQkkVteb@coredump.intra.peff.net>
On 2021-05-08 at 03:10:50, Jeff King wrote:
Show 16 quoted lines
> On Fri, May 07, 2021 at 11:57:32PM +0000, brian m. carlson wrote: > > > It's not quite that simple. It requires changes to > > asciidoctor-extensions.rb and we also need to consider > > NO_MAN_BOLD_LITERAL and GNU_ROFF. The latter especially is likely to be > > inconvenient, since according to the Makefile, it's impossible to write > > man output that works across troff versions. > > > > We will also want to preserve the ability to use xmlto because we > > currently have doc-diff which helps us find divergences in the behavior > > of AsciiDoc and Asciidoctor, many of which affect all formats, and that > > will be completely useless if we use two different rendering toolchains. > > Speaking of doc-diff: with that patch applied, try "./doc-diff > --asciidoctor HEAD^ HEAD", which shows quite a few of the complications > (another one seems to be that all of the linkgit macros are broken).
Yes, that's because the linkgit macros are specified on a format-specific basis by the extensions file and without updating they won't understand how to generate output for the manpage formatter.
-- brian m. carlson (he/him or they/them) Houston, Texas, US