'libvirtxml',
]
-html_xslt_gen_xslt = subsite_xsl
html_xslt_gen_install_dir = docs_html_dir / 'go'
html_xslt_gen = []
'name': name,
'file': docs_rst2html5_gen.process(rst_file),
'source': 'docs' / 'go' / rst_file,
+ 'href_base': '../',
}
endforeach
'--stringparam', 'pagesrc', data.get('source', ''),
'--stringparam', 'builddir', meson.build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'href_base', data.get('href_base', ''),
'--nonet',
- html_xslt_gen_xslt,
+ site_xsl,
'@INPUT@',
],
depends: data.get('depends', []),
'rpc',
]
-html_xslt_gen_xslt = subsite_xsl
html_xslt_gen_install_dir = docs_html_dir / 'internals'
html_xslt_gen = []
html_xslt_gen += {
'name': name,
'source': 'docs' / 'internals' / name + '.html.in',
+ 'href_base': '../'
}
endforeach
'--stringparam', 'pagesrc', data.get('source', ''),
'--stringparam', 'builddir', meson.build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'href_base', data.get('href_base', ''),
'--nonet',
- html_xslt_gen_xslt,
+ site_xsl,
'@INPUT@',
],
depends: data.get('depends', []),
'virtiofs',
]
-html_xslt_gen_xslt = subsite_xsl
html_xslt_gen_install_dir = docs_html_dir / 'kbase'
html_xslt_gen = []
'name': name,
'file': docs_rst2html5_gen.process(rst_file),
'source': 'docs' / 'kbase' / rst_file,
+ 'href_base': '../',
}
endforeach
'--stringparam', 'pagesrc', data.get('source', ''),
'--stringparam', 'builddir', meson.build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'href_base', data.get('href_base', ''),
'--nonet',
- html_xslt_gen_xslt,
+ site_xsl,
'@INPUT@',
],
depends: data.get('depends', []),
-html_xslt_gen_xslt = subsite_xsl
html_xslt_gen_install_dir = docs_html_dir / 'manpages'
html_xslt_gen = []
'name': data['name'],
'file': html_in,
'source': 'docs' / 'manpages' / rst_in_file,
+ 'href_base': '../',
}
endforeach
'--stringparam', 'pagesrc', data.get('source', ''),
'--stringparam', 'builddir', meson.build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'href_base', data.get('href_base', ''),
'--nonet',
- html_xslt_gen_xslt,
+ site_xsl,
'@INPUT@',
],
depends: data.get('depends', []),
]
docs_html_in_files = [
- '404',
'docs',
'formatcaps',
'formatnetwork',
).stdout().strip()
site_xsl = files('site.xsl')
-subsite_xsl = files('subsite.xsl')
page_xsl = files('page.xsl')
newapi_xsl = files('newapi.xsl')
# html_xslt_gen config
-html_xslt_gen_xslt = site_xsl
html_xslt_gen_install_dir = docs_html_dir
html_xslt_gen = []
'depends': aclperms_gen,
}
+html_xslt_gen += {
+ 'name': '404',
+ 'source': 'docs' / '404.html.in',
+ 'href_base': '/',
+}
+
hvsupport_html_in = custom_target(
'hvsupport.html.in',
output: 'hvsupport.html.in',
'--stringparam', 'pagesrc', data.get('source', ''),
'--stringparam', 'builddir', meson.build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'href_base', data.get('href_base', ''),
'--nonet',
- html_xslt_gen_xslt,
+ site_xsl,
'@INPUT@',
],
depends: data.get('depends', []),
encoding="UTF-8"
indent="yes"/>
- <xsl:variable name="href_base">
- <xsl:choose>
- <xsl:when test="$pagesrc = 'docs/404.html.in'">
- <xsl:value-of select="'/'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="''"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
<xsl:template match="/">
<xsl:apply-templates select="." mode="page">
<xsl:with-param name="pagesrc" select="$pagesrc"/>
<xsl:with-param name="timestamp" select="$timestamp"/>
+ <xsl:with-param name="href_base" select="$href_base"/>
</xsl:apply-templates>
</xsl:template>
+++ /dev/null
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- exclude-result-prefixes="xsl exsl"
- version="1.0">
-
- <xsl:import href="page.xsl"/>
-
- <xsl:output
- method="xml"
- encoding="UTF-8"
- indent="yes"/>
-
- <xsl:variable name="href_base" select="'../'"/>
-
- <xsl:template match="/">
- <xsl:apply-templates select="." mode="page">
- <xsl:with-param name="pagesrc" select="$pagesrc"/>
- <xsl:with-param name="timestamp" select="$timestamp"/>
- </xsl:apply-templates>
- </xsl:template>
-
-</xsl:stylesheet>