]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist docs (html-docs, tarball and pdf)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 17 Feb 2025 14:29:31 +0000 (15:29 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 17 Feb 2025 14:31:26 +0000 (15:31 +0100)
pdns/dnsdistdist/docs/generate-docs.py [new symlink]
pdns/dnsdistdist/meson.build

diff --git a/pdns/dnsdistdist/docs/generate-docs.py b/pdns/dnsdistdist/docs/generate-docs.py
new file mode 120000 (symlink)
index 0000000..4862bfd
--- /dev/null
@@ -0,0 +1 @@
+../../../docs/generate-docs.py
\ No newline at end of file
index 6900e9bfab6bc5a0b74acc1ad886a34fa7918a5c..63b651bf70376de2d736b4ad93a2eb71f9082306 100644 (file)
@@ -688,4 +688,47 @@ install_data(
   'dnsdist.conf-dist',
   install_dir : get_option('sysconfdir'),
   follow_symlinks: true
-)
\ No newline at end of file
+)
+
+html_docs = custom_target(
+  'html-docs',
+  command: [
+      python,
+      product_source_dir / docs_dir / 'generate-docs.py',
+      '--build-root', '@BUILD_ROOT@',
+      '--source-root', '@SOURCE_ROOT@',
+      '--venv-name', 'venv-docs',
+      '--requirements-file', docs_dir / 'requirements.txt',
+      '--source-directory', docs_dir,
+      '--target-directory', '@BUILD_ROOT@' / 'html-docs',
+  ],
+  output: 'html-docs',
+  console: true,
+)
+
+docs_tarball = custom_target(
+  'html-docs.tar.bz2',
+  command: ['tar', 'cjf', 'html-docs.tar.bz2', html_docs],
+  output: 'html-docs.tar.bz2',
+)
+
+latex_docs = custom_target(
+  command: [
+      python,
+      product_source_dir / docs_dir / 'generate-docs.py',
+      '--build-root', '@BUILD_ROOT@',
+      '--source-root', '@SOURCE_ROOT@',
+      '--venv-name', 'venv-docs',
+      '--requirements-file', docs_dir / 'requirements.txt',
+      '--source-directory', docs_dir,
+      '--target-directory', '@BUILD_ROOT@',
+      '--latex-name', 'dnsdist.pdf',
+  ],
+  output: 'dnsdist.pdf',
+  console: true,
+)
+
+run_target(
+  'all-docs',
+  command: ['echo', html_docs, docs_tarball, latex_docs],
+)