2020-06-18 00:30:40 +00:00
|
|
|
docs_kbase_files = [
|
|
|
|
'backing_chains',
|
2020-07-29 14:49:28 +00:00
|
|
|
'debuglogs',
|
2020-06-18 00:30:40 +00:00
|
|
|
'domainstatecapture',
|
2023-12-07 10:28:23 +00:00
|
|
|
'failed_connection_after_install',
|
2020-11-04 14:18:29 +00:00
|
|
|
'index',
|
2020-06-18 00:30:40 +00:00
|
|
|
'kvm-realtime',
|
|
|
|
'launch_security_sev',
|
2021-05-10 16:39:55 +00:00
|
|
|
'live_full_disk_backup',
|
2020-06-18 00:30:40 +00:00
|
|
|
'locking-lockd',
|
|
|
|
'locking',
|
|
|
|
'locking-sanlock',
|
2021-02-07 19:52:08 +00:00
|
|
|
'memorydevices',
|
2021-05-10 16:39:56 +00:00
|
|
|
'merging_disk_image_chains',
|
2021-07-20 12:11:50 +00:00
|
|
|
'qemu-core-dump',
|
2020-06-18 00:30:40 +00:00
|
|
|
'qemu-passthrough-security',
|
|
|
|
'rpm-deployment',
|
|
|
|
's390_protected_virt',
|
2022-06-22 10:08:04 +00:00
|
|
|
'secureboot',
|
2020-06-18 00:30:40 +00:00
|
|
|
'secureusage',
|
2022-03-09 16:05:14 +00:00
|
|
|
'snapshots',
|
2020-08-06 06:34:02 +00:00
|
|
|
'systemtap',
|
2022-04-04 14:40:45 +00:00
|
|
|
'tlscerts',
|
2020-06-18 00:30:40 +00:00
|
|
|
'virtiofs',
|
|
|
|
]
|
|
|
|
|
2020-10-13 15:19:50 +00:00
|
|
|
html_xslt_gen_install_dir = docs_html_dir / 'kbase'
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
2020-06-18 00:30:40 +00:00
|
|
|
foreach name : docs_kbase_files
|
|
|
|
rst_file = '@0@.rst'.format(name)
|
|
|
|
|
2020-10-13 15:19:50 +00:00
|
|
|
html_xslt_gen += {
|
|
|
|
'name': name,
|
2021-08-09 14:48:58 +00:00
|
|
|
'file': docs_rst2html5_gen.process(rst_file),
|
2021-08-10 14:46:07 +00:00
|
|
|
'source': 'docs' / 'kbase' / rst_file,
|
2022-04-05 14:52:57 +00:00
|
|
|
'href_base': '../',
|
2020-10-13 15:19:50 +00:00
|
|
|
}
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
|
|
# --- begin of XSLT processing ---
|
2020-06-18 00:30:40 +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:30:40 +00:00
|
|
|
command: [
|
2020-10-13 15:19:50 +00:00
|
|
|
xsltproc_prog,
|
|
|
|
'--stringparam', 'pagesrc', data.get('source', ''),
|
2022-10-07 07:31:32 +00:00
|
|
|
'--stringparam', 'builddir', meson.project_build_root(),
|
2020-10-13 15:19:50 +00:00
|
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
2022-04-05 14:52:57 +00:00
|
|
|
'--stringparam', 'href_base', data.get('href_base', ''),
|
2020-10-13 15:19:50 +00:00
|
|
|
'--nonet',
|
2022-04-05 14:52:57 +00:00
|
|
|
site_xsl,
|
2020-06-18 00:30:40 +00:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
2020-10-13 15:19:50 +00:00
|
|
|
depends: data.get('depends', []),
|
2020-06-18 00:30:40 +00:00
|
|
|
depend_files: [ page_xsl ],
|
2020-10-13 15:19:50 +00:00
|
|
|
capture: true,
|
2020-06-18 00:30:40 +00:00
|
|
|
install: true,
|
2020-10-13 15:19:50 +00:00
|
|
|
install_dir: html_xslt_gen_install_dir,
|
2020-06-18 00:30:40 +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:30:40 +00:00
|
|
|
endforeach
|
2020-10-13 15:19:50 +00:00
|
|
|
|
|
|
|
html_xslt_gen = []
|
|
|
|
|
|
|
|
# --- end of XSLT processing ---
|
2022-04-05 11:27:42 +00:00
|
|
|
|
|
|
|
subdir('internals')
|