Re: [PATCH] asciidoctor-extensions: provide `<refmiscinfo/>`
- From
- Martin Ågren <martin.agren@gmail.com>
- Date
- Mar 19, 2019, 07:12 UTC
- Message-ID
- <CAN0heSo92kS6mhYH0HM-z9jOKNR0wzDynu3bnq=FtBc4_+zCpQ@mail.gmail.com>
- In-Reply-To
- <20190319033023.GA25772@sigill.intra.peff.net>
On Tue, 19 Mar 2019 at 04:30, Jeff King <peff@peff.net> wrote:
Show 25 quoted lines
> > On Mon, Mar 18, 2019 at 10:46:45PM -0400, Jeff King wrote: > > > It does seem like "mansource" is the way asciidoctor expects us to do > > this. Why doesn't it work from the command line? Is it a bug in > > asciidoctor, or is there something more subtle going on? > > > > I think even if it is a bug and gets fixed, though, it still wouldn't > > have the version field (though that seems like something we could > > contribute to asciidoctor). > > I just tried with asciidoc 2.0.0.rc.2, which came out last week. It does > seem to work from the command line: > > $ make USE_ASCIIDOCTOR=Yes \ > ASCIIDOC_DOCBOOK=docbook5 \ > ASCIIDOC='asciidoctor -amansource=Git -amanmanual="Git Manual"' \ > git-add.xml > $ sed -n '/refmeta/,/refmeta/p' git-add.xml > <refmeta> > <refentrytitle>git-add</refentrytitle> > <manvolnum>1</manvolnum> > <refmiscinfo class="source">Git</refmiscinfo> > <refmiscinfo class="manual">Git Manual</refmiscinfo> > </refmeta>
No such luck with asciidoctor 1.5.5. Seems like it really wants "manpage" before it considers these attributes.
(That's still me holding the tool, so factor that into it.)
Martin