2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 18:08:16 +00:00
kea/doc/sphinx/make-doc.sh.in

41 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2025-02-18 15:54:20 +01:00
#!/bin/sh
2025-03-11 10:58:45 +02:00
set -eu
if test '@SPHINXBUILD@' = 'false'; then
echo 'Warning: sphinx-build is missing. Not creating docs.' >&2
exit 0
fi
2025-02-18 15:54:20 +01:00
2025-02-28 11:00:03 +02:00
cd '@builddir@'
2025-02-18 15:54:20 +01:00
# api.rst is always generated via sphinx's conf.py
@PYTHON@ @srcdir@/api2doc.py -o @srcdir@/api.rst
2025-02-28 11:00:03 +02:00
rm -f '@srcdir@/arm/platforms.rst'
cp '@TOP_SOURCE_DIR@/platforms.rst' '@srcdir@/arm/platforms.rst'
2025-02-18 15:54:20 +01:00
# html
@SPHINXBUILD@ -M html @srcdir@ @sphinxbuilddir@ @sphinxopts@
# singlehtml
@SPHINXBUILD@ -M singlehtml @srcdir@ @sphinxbuilddir@ @sphinxopts@
# text
@SPHINXBUILD@ -M text @srcdir@ @sphinxbuilddir@ @sphinxopts@
# mans
@SPHINXBUILD@ -M man @srcdir@ @sphinxbuilddir@ @sphinxopts@
2025-03-11 10:58:45 +02:00
# pdf
if test '@HAVE_PDFLATEX@' != 'no'; then
@SPHINXBUILD@ -M latex @srcdir@ @sphinxbuilddir@ @sphinxopts@
cd '@abs_sphinxbuilddir@/latex'
@PDFLATEX_AND_OPTS@ kea-arm.tex
makeindex -s python.ist kea-arm.idx
@PDFLATEX_AND_OPTS@ kea-arm.tex
@PDFLATEX_AND_OPTS@ kea-messages.tex
makeindex -s python.ist kea-messages.idx
@PDFLATEX_AND_OPTS@ kea-messages.tex
fi