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 'parallel-checkout.adoc',
22 'partial-clone.adoc',
23 'platform-support.adoc',
24 'racy-git.adoc',
25 'reftable.adoc',
26 'remembering-renames.adoc',
27 'repository-version.adoc',
28 'rerere.adoc',
29 'scalar.adoc',
30 'send-pack-pipeline.adoc',
31 'shallow.adoc',
32 'sparse-checkout.adoc',
33 'sparse-index.adoc',
34 'trivial-merge.adoc',
35 'unambiguous-types.adoc',
36 'unit-tests.adoc',
37 ]
38
39 api_index = custom_target(
40 command: [
41 shell,
42 meson.current_source_dir() / 'api-index.sh',
43 meson.current_source_dir(),
44 '@OUTPUT@',
45 ],
46 env: script_environment,
47 input: api_docs,
48 output: 'api-index.adoc',
49 )
50
51 doc_targets += custom_target(
52 command: asciidoc_html_options,
53 input: api_index,
54 output: 'api-index.html',
55 depends: documentation_deps,
56 install: true,
57 install_dir: htmldir / 'technical',
58 )
59
60 foreach article : api_docs + articles
61 doc_targets += custom_target(
62 command: asciidoc_html_options,
63 input: article,
64 output: fs.stem(article) + '.html',
65 depends: documentation_deps,
66 install: true,
67 install_dir: htmldir / 'technical',
68 )
69 endforeach