Skip to content

Commit 3569e11

Browse files
raboofgitster
authored andcommitted
doc: make HTML manual reproducible
Versions of docbook-xsl newer than 1.79.1 allows xsltproc to assign IDs to nodes in the generated HTML consistently, to make the output resulting from the same source stable and reproducible. Pass the generate.consistent.ids parameter from the command line to ask for this feature. Older versions of the tool simply ignores the parameter and produces their output the same way as before this change, so there is no need to check for toolchain version. Signed-off-by: Arnout Engelen <[email protected]> Helped-by: brian m. carlson <[email protected]> Helped-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898f807 commit 3569e11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ SubmittingPatches.txt: SubmittingPatches
380380
$(QUIET_GEN) cp $< $@
381381

382382
XSLT = docbook.xsl
383-
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
383+
XSLTOPTS =
384+
XSLTOPTS += --xinclude
385+
XSLTOPTS += --stringparam html.stylesheet docbook-xsl.css
386+
XSLTOPTS += --param generate.consistent.ids 1
384387

385388
user-manual.html: user-manual.xml $(XSLT)
386389
$(QUIET_XSLTPROC)$(RM) $@+ $@ && \

0 commit comments

Comments
 (0)