From: Otto Moerbeek Date: Mon, 17 Feb 2025 14:29:31 +0000 (+0100) Subject: dnsdist docs (html-docs, tarball and pdf) X-Git-Tag: dnsdist-2.0.0-alpha1~48^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f58af5df41808a4bbb10c003f4b35037e1d07d8;p=thirdparty%2Fpdns.git dnsdist docs (html-docs, tarball and pdf) --- diff --git a/pdns/dnsdistdist/docs/generate-docs.py b/pdns/dnsdistdist/docs/generate-docs.py new file mode 120000 index 0000000000..4862bfd5bf --- /dev/null +++ b/pdns/dnsdistdist/docs/generate-docs.py @@ -0,0 +1 @@ +../../../docs/generate-docs.py \ No newline at end of file diff --git a/pdns/dnsdistdist/meson.build b/pdns/dnsdistdist/meson.build index 6900e9bfab..63b651bf70 100644 --- a/pdns/dnsdistdist/meson.build +++ b/pdns/dnsdistdist/meson.build @@ -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], +)