doc: move docbook config to a file

I think it's nicer to have the configuration in a separate file, and not
clutter the Meson file. Yes, the XML syntax is inconvenient.

This patch does not change the generated output.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-01-16 13:40:39 +02:00
parent 48bfba8378
commit 8c9aedf36e
2 changed files with 12 additions and 5 deletions

View file

@ -96,11 +96,7 @@ custom_target(
'Wayland-docbook-html',
command: [
xmlto,
'--stringparam', 'chunker.output.encoding=UTF-8',
'--stringparam', 'chunk.section.depth=0',
'--stringparam', 'toc.section.depth=1',
'--stringparam', 'generate.consistent.ids=1',
'--stringparam', 'html.stylesheet=css/default.css',
'-m', files('xsl/docbook-config.xsl'),
'-o', '@OUTPUT@',
'html',
'@INPUT0@'

View file

@ -0,0 +1,11 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- See: https://docbook.sourceforge.net/release/xsl/current/doc/html/index.html -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="chunker.output.encoding">UTF-8</xsl:param>
<xsl:param name="chunk.section.depth">0</xsl:param>
<xsl:param name="toc.section.depth">1</xsl:param>
<xsl:param name="generate.consistent.ids">1</xsl:param>
<xsl:param name="html.stylesheet">css/default.css</xsl:param>
</xsl:stylesheet>