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