2020-06-18 00:29:29 +00:00
|
|
|
internals_in_files = [
|
|
|
|
'command',
|
|
|
|
'eventloop',
|
|
|
|
'locking',
|
|
|
|
'rpc',
|
|
|
|
]
|
|
|
|
|
2020-10-13 15:19:50 +00:00
|
|
|
html_xslt_gen_xslt = subsite_xsl
|
|
|
|
html_xslt_gen_install_dir = docs_html_dir / 'internals'
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
2020-06-18 00:29:29 +00:00
|
|
|
foreach name : internals_in_files
|
2020-10-13 15:19:50 +00:00
|
|
|
html_xslt_gen += {
|
|
|
|
'name': name,
|
2021-08-10 14:46:07 +00:00
|
|
|
'source': 'docs' / 'internals' / name + '.html.in',
|
2020-10-13 15:19:50 +00:00
|
|
|
}
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
# keep the XSLT processing code block in sync with docs/meson.build
|
|
|
|
|
|
|
|
# --- begin of XSLT processing ---
|
2020-06-18 00:29:29 +00:00
|
|
|
|
2020-10-13 15:19:50 +00:00
|
|
|
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,
|
2020-06-18 00:29:29 +00:00
|
|
|
command: [
|
2020-10-13 15:19:50 +00:00
|
|
|
xsltproc_prog,
|
|
|
|
'--stringparam', 'pagesrc', data.get('source', ''),
|
|
|
|
'--stringparam', 'builddir', meson.build_root(),
|
|
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
|
|
|
'--nonet',
|
|
|
|
html_xslt_gen_xslt,
|
2020-06-18 00:29:29 +00:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
2020-10-13 15:19:50 +00:00
|
|
|
depends: data.get('depends', []),
|
2020-06-18 00:29:29 +00:00
|
|
|
depend_files: [ page_xsl ],
|
2020-10-13 15:19:50 +00:00
|
|
|
capture: true,
|
2020-06-18 00:29:29 +00:00
|
|
|
install: true,
|
2020-10-13 15:19:50 +00:00
|
|
|
install_dir: html_xslt_gen_install_dir,
|
2020-06-18 00:29:29 +00:00
|
|
|
)
|
2020-07-23 16:40:12 +00:00
|
|
|
|
2020-10-13 15:19:50 +00:00
|
|
|
install_web_deps += html_file
|
|
|
|
install_web_files += html_file.full_path() + ':' + html_xslt_gen_install_dir
|
2020-06-18 00:29:29 +00:00
|
|
|
endforeach
|
2020-10-13 15:19:50 +00:00
|
|
|
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
|
|
|
# --- end of XSLT processing ---
|