mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
docs: site.xsl: Use separate 'asset_href_base' and 'link_href_base'
While our main page uses same argument for both to ensure that the linking works also when browsed locally sub-projects such as libvirt-wiki and libvirt-security-notice will want to pull 'site.xsl' as is into their build assets. Pass both arguments via the build system so that we don't have to carry distinct instances. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
@@ -101,7 +101,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
@@ -42,7 +42,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
@@ -53,7 +53,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
@@ -62,7 +62,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
@@ -152,7 +152,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
+2
-1
@@ -301,7 +301,8 @@ foreach data : html_xslt_gen
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'link_href_base', data.get('href_base', ''),
|
||||
'--stringparam', 'asset_href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
site_xsl,
|
||||
'@INPUT@',
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
<xsl:apply-templates select="." mode="page">
|
||||
<xsl:with-param name="pagesrc" select="$pagesrc"/>
|
||||
<xsl:with-param name="timestamp" select="$timestamp"/>
|
||||
<xsl:with-param name="link_href_base" select="$href_base"/>
|
||||
<xsl:with-param name="asset_href_base" select="$href_base"/>
|
||||
<xsl:with-param name="link_href_base" select="$link_href_base"/>
|
||||
<xsl:with-param name="asset_href_base" select="$asset_href_base"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user