]> git.ipfire.org Git - thirdparty/git.git/commit
Doc: fix Asciidoctor css workaround
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2024 21:17:55 +0000 (14:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jul 2024 18:02:52 +0000 (11:02 -0700)
commitd44ce6ddd5f1b8c5f5a18abed22ada1b48e893ba
tree3517fea515a3e79a5074b8792600fff07dcf2255
parent8bfc3e47a73b108fd8e7f9c3b9e7714b9f418fa8
Doc: fix Asciidoctor css workaround

The previous step introduced docinfo.html to be used to tweak the
CSS used by the asciidoctor, that by default renders <code> inside
<pre> as a block element, breaking the SYNOPSIS section of a few
pages that adopted a new convention we use since Git 2.45.

But in this project, HTML files are all generated.  We do not force
any human to write HTML by hand, which is an unusual and cruel
punishment.  "*.html" is in the .gitignore file, and "make clean"
removes them.  Having a tracked .html file makes "make clean" make
the tree dirty by removing the tracked docinfo.html file.

Let's do an obvious, minimum and stupid workaround to generate that
file at runtime instead.  The mark-up is being rethought in a major
way for the next development cycle, and the CSS workaround we added
in the previous step may have to adjusted, possibly in a large way,
anyway.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/.gitignore
Documentation/Makefile
Documentation/docinfo-html.in [moved from Documentation/docinfo.html with 100% similarity]