Skip to content

Commit

Permalink
dnsdist docs (html-docs, tarball and pdf)
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed Feb 17, 2025
1 parent 707a2c7 commit 2cd4f1a
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion pdns/dnsdistdist/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -688,4 +688,47 @@ install_data(
'dnsdist.conf-dist',
install_dir : get_option('sysconfdir'),
follow_symlinks: true
)
)

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],
)

0 comments on commit 2cd4f1a

Please sign in to comment.