git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] doc: make HTML manual reproducible

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 2, 2020, 00:41 UTC
Message-ID
<X8bis7ZnU8FViHjk@camp.crustytoothpaste.net>
In-Reply-To
<20201201095037.20715-1-arnout@bzzt.net>
On 2020-12-01 at 09:50:37, Arnout Engelen wrote:
Show 19 quoted lines
> This makes sure the generated id's inside the html version of the
> documentation use the same id's when the same version of the
> manual is generated twice.
> 
> Signed-off-by: Arnout Engelen <arnout@bzzt.net>
> ---
>  Documentation/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/Makefile b/Documentation/Makefile
> index 80d1908a44..4d1fd5e31f 100644
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -380,7 +380,7 @@ SubmittingPatches.txt: SubmittingPatches
>  	$(QUIET_GEN) cp $< $@
>  
>  XSLT = docbook.xsl
> -XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
> +XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css --stringparam generate.consistent.ids 1

I think we'll want --param here, not --stringparam. This is documented to be an integer, not a string. The difference is that --stringparam sets the value to "1" (that is, a string with a single character) instead of the integer 1.

We may also want to wrap this to the next line like so:
  XSLTOPTS =  --xinclude --stringparam html.stylesheet docbook-xsl.css
  XSLTOPTS += --param generate.consistent.ids 1

Otherwise, I think this is a valuable change, as I've mentioned downthread. I already use this option on my own projects for the same reason.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Arnout Engelen
Message 15 of 15 in “doc: make HTML manual reproducible”
  1. doc: make HTML manual reproducibleArnout Engelen, Dec 1, 2020
  2. Todd ZullingerDec 1, 2020
  3. Martin ÅgrenDec 1, 2020
  4. Jeff KingDec 2, 2020
  5. Junio C HamanoDec 1, 2020
  6. Martin ÅgrenDec 1, 2020
  7. brian m. carlsonDec 2, 2020
  8. Todd ZullingerDec 2, 2020
  9. Junio C HamanoDec 2, 2020
  10. brian m. carlsonDec 2, 2020
  11. Junio C HamanoDec 3, 2020
  12. Todd ZullingerDec 3, 2020
  13. Re* [PATCH] doc: make HTML manual reproducibleJunio C Hamano, Dec 3, 2020
  14. Arnout EngelenDec 3, 2020
  15. brian m. carlsonDec 2, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.