diff options
author | Johan Ouwerkerk <jm.ouwerkerk@gmail.com> | 2015-07-13 10:39:09 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:06:06 +0100 |
commit | 1839f931d9b61cecefe20717d371cc430aa1b61e (patch) | |
tree | 2c9c8c312c9fbca25c4a63fc195ec9e52b6c714e /man | |
parent | e7f11b8ef6815c3a851cd1a74b75b4b78152dab0 (diff) |
doc: configure docbook stylesheet to generate reproducible IDs
This makes auto generated anchor tags in HTML output reproducible.
Diffstat (limited to 'man')
-rw-r--r-- | man/custom-html.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl index 1ac247e65..d9079d0fa 100644 --- a/man/custom-html.xsl +++ b/man/custom-html.xsl @@ -22,6 +22,16 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> +<!-- + - The docbook stylesheet injects empty anchor tags into generated HTML, identified by an auto-generated ID. + - Ask the docbook stylesheet to generate reproducible output when generating (these) ID values. + - This makes the output of this stylesheet reproducible across identical invocations on the same input, + - which is an easy and significant win for achieving reproducible builds. + - + - It may be even better to strip the empty anchors from the document output in addition to turning on consistent IDs, + - for this stylesheet contains its own custom ID logic (for generating permalinks) already. + --> +<xsl:param name="generate.consistent.ids" select="1"/> <!-- translate man page references to links to html pages --> <xsl:template match="citerefentry[not(@project)]"> |