From 334858bd4049e95caa9908c709e7048dc249b3ff Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 7 Feb 2024 17:30:55 +0100 Subject: [PATCH] docs: xsl: Properly propagate 'href_base' as XSL template parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Propagate it as a parameter both from site.xsl and from newapi.xsl, the latter of which declared it as a variable. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- docs/html/meson.build | 2 ++ docs/newapi.xsl | 2 +- docs/page.xsl | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/html/meson.build b/docs/html/meson.build index e2758ed177..abb4fcf72a 100644 --- a/docs/html/meson.build +++ b/docs/html/meson.build @@ -27,6 +27,7 @@ index_api_gen = custom_target( xsltproc_prog, '--nonet', '-o', docs_builddir, '--stringparam', 'builddir', meson.project_build_root(), '--stringparam', 'timestamp', docs_timestamp, + '--stringparam', 'href_base', '../', '@INPUT@', ], install: true, @@ -53,6 +54,7 @@ foreach name : [ 'admin', 'lxc', 'qemu' ] xsltproc_prog, '--nonet', '-o', docs_builddir, '--stringparam', 'builddir', meson.project_build_root(), '--stringparam', 'timestamp', docs_timestamp, + '--stringparam', 'href_base', '../', '@INPUT@', ], install: true, diff --git a/docs/newapi.xsl b/docs/newapi.xsl index 19a440bb09..ebe7fdedd7 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -24,7 +24,6 @@ html - ../ @@ -816,6 +815,7 @@ encoding="UTF-8"> + diff --git a/docs/page.xsl b/docs/page.xsl index e2f0092ae9..5d55fac43f 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -17,6 +17,7 @@ + <!DOCTYPE html>