2021-05-25 10:42:32 +00:00
|
|
|
docs_go_files = [
|
|
|
|
'libvirt',
|
|
|
|
'libvirtxml',
|
|
|
|
]
|
|
|
|
|
|
|
|
html_xslt_gen_install_dir = docs_html_dir / 'go'
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
|
|
|
foreach name : docs_go_files
|
|
|
|
rst_file = '@0@.rst'.format(name)
|
|
|
|
|
|
|
|
html_xslt_gen += {
|
|
|
|
'name': name,
|
2021-08-09 14:48:58 +00:00
|
|
|
'file': docs_rst2html5_gen.process(rst_file),
|
2021-05-25 10:42:32 +00:00
|
|
|
'source': 'docs' / 'go' / rst_file,
|
2022-04-05 14:52:57 +00:00
|
|
|
'href_base': '../',
|
2021-05-25 10:42:32 +00:00
|
|
|
}
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
# keep the XSLT processing code block in sync with docs/meson.build
|
|
|
|
|
|
|
|
# --- begin of XSLT processing ---
|
|
|
|
|
|
|
|
foreach data : html_xslt_gen
|
|
|
|
html_filename = data['name'] + '.html'
|
|
|
|
|
|
|
|
html_file = custom_target(
|
|
|
|
html_filename,
|
|
|
|
input: data.get('file', data['name'] + '.html.in'),
|
|
|
|
output: html_filename,
|
|
|
|
command: [
|
|
|
|
xsltproc_prog,
|
|
|
|
'--stringparam', 'pagesrc', data.get('source', ''),
|
|
|
|
'--stringparam', 'builddir', meson.build_root(),
|
|
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
2022-04-05 14:52:57 +00:00
|
|
|
'--stringparam', 'href_base', data.get('href_base', ''),
|
2021-05-25 10:42:32 +00:00
|
|
|
'--nonet',
|
2022-04-05 14:52:57 +00:00
|
|
|
site_xsl,
|
2021-05-25 10:42:32 +00:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
depends: data.get('depends', []),
|
|
|
|
depend_files: [ page_xsl ],
|
|
|
|
capture: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: html_xslt_gen_install_dir,
|
|
|
|
)
|
|
|
|
|
|
|
|
install_web_deps += html_file
|
|
|
|
install_web_files += html_file.full_path() + ':' + html_xslt_gen_install_dir
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
|
|
|
# --- end of XSLT processing ---
|