Raw
1 api_docs = [
2 'api-error-handling.adoc',
3 'api-merge.adoc',
4 'api-parse-options.adoc',
5 'api-simple-ipc.adoc',
6 'api-trace2.adoc',
7 ]
8
9 articles = [
10 'bitmap-format.adoc',
11 'build-systems.adoc',
12 'bundle-uri.adoc',
13 'commit-graph.adoc',
14 'directory-rename-detection.adoc',
15 'hash-function-transition.adoc',
16 'large-object-promisors.adoc',
17 'long-running-process-protocol.adoc',
18 'multi-pack-index.adoc',
19 'packfile-uri.adoc',
20 'pack-heuristics.adoc',
21 'paint-down-to-common.adoc',
22 'parallel-checkout.adoc',
23 'partial-clone.adoc',
24 'platform-support.adoc',
25 'racy-git.adoc',
26 'reftable.adoc',
27 'remembering-renames.adoc',
28 'repository-version.adoc',
29 'rerere.adoc',
30 'scalar.adoc',
31 'send-pack-pipeline.adoc',
32 'shallow.adoc',
33 'sparse-checkout.adoc',
34 'sparse-index.adoc',
35 'trivial-merge.adoc',
36 'unambiguous-types.adoc',
37 'unit-tests.adoc',
38 ]
39
40 api_index = custom_target(
41 command: [
42 shell,
43 meson.current_source_dir() / 'api-index.sh',
44 meson.current_source_dir(),
45 '@OUTPUT@',
46 ],
47 env: script_environment,
48 input: api_docs,
49 output: 'api-index.adoc',
50 )
51
52 doc_targets += custom_target(
53 command: asciidoc_html_options,
54 input: api_index,
55 output: 'api-index.html',
56 depends: documentation_deps,
57 install: true,
58 install_dir: htmldir / 'technical',
59 )
60
61 foreach article : api_docs + articles
62 doc_targets += custom_target(
63 command: asciidoc_html_options,
64 input: article,
65 output: fs.stem(article) + '.html',
66 depends: documentation_deps,
67 install: true,
68 install_dir: htmldir / 'technical',
69 )
70 endforeach