Debian Codegraph @

doc/html/meson.build

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