| 1 |
# Copyright 2021-2023 David Robillard <[email protected]> |
| 2 |
# SPDX-License-Identifier: 0BSD OR ISC |
| 3 |
|
| 4 |
singlehtml_dir = docdir / versioned_name / 'singlehtml' |
| 5 |
|
| 6 |
# TODO: Add install_tag: 'doc' after requiring meson 0.60.0 |
| 7 |
|
| 8 |
custom_target( |
| 9 |
'singlehtml', |
| 10 |
build_by_default: true, |
| 11 |
command: sphinx_build_command + [ |
| 12 |
'-b', 'singlehtml', |
| 13 |
'-t', 'singlehtml', |
| 14 |
sphinx_in_dir, |
| 15 |
'@OUTDIR@', |
| 16 |
], |
| 17 |
input: [api_sratom_rst, conf_py, sphinx_input], |
| 18 |
install: true, |
| 19 |
install_dir: singlehtml_dir, |
| 20 |
output: [ |
| 21 |
'index.html', |
| 22 |
|
| 23 |
'_static', |
| 24 |
], |
| 25 |
) |
| 26 |
|
| 27 |
if not meson.is_subproject() |
| 28 |
summary( |
| 29 |
'Single HTML', |
| 30 |
get_option('prefix') / singlehtml_dir, |
| 31 |
section: 'Directories', |
| 32 |
) |
| 33 |
endif |