]> git.ipfire.org Git - thirdparty/git.git/commit
Documentation: inline user-manual.conf
authorPatrick Steinhardt <ps@pks.im>
Fri, 27 Dec 2024 13:59:33 +0000 (14:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2024 16:28:10 +0000 (08:28 -0800)
commit851ecc4290cbdb57f36f10b77da9c1ae13c10469
tree56199e20da04011bb7744bbcf9f4d48240016393
parent0696ebe9ce533cf3c839c9eb2bd2331c8fa0f014
Documentation: inline user-manual.conf

When generating our user manual we set up a bit of extra configuration
compared to our normal configuration. This is done by having an extra
"user-manual.conf" file that Asciidoc seems to pull in automatically due
to matching filenames with "user-manual.txt". This dependency is quite
hidden though and thus easy to miss. Furthermore, it seems that Asciidoc
does not know to pull it in for out-of-tree builds where we use relative
paths.

The setup in AsciiDoctor is somewhat different: instead of having two
sets of configuration, we condition the use of manual-specific configs
based on whether the document type is "book". And as we only build our
user manual with that type this is sufficient.

Use the same trick for our user manual by inlining the configuration
into "asciidoc.conf.in" and making it conditional on whether or not
"doctype-book" is defined.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile
Documentation/asciidoc.conf.in
Documentation/user-manual.conf [deleted file]