diff options
author | René Korthaus <[email protected]> | 2017-03-16 17:12:47 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2017-03-16 17:12:47 +0100 |
commit | c4d78dfb19ba082a224d68515fdf249c9b853904 (patch) | |
tree | f094893ab28317aeb299c7f960b8405cdddd2791 /src/scripts/website.sh | |
parent | 6bfc86924d6d20f8cdeb832f40be224a03d00858 (diff) |
Provide the handbook as a PDF download
Extends the website script to include a link to
the manual as a PDF file for download.
Also includes links to search and index only
for html, as it does not work for latex.
Diffstat (limited to 'src/scripts/website.sh')
-rwxr-xr-x | src/scripts/website.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/scripts/website.sh b/src/scripts/website.sh index bb6e69df7..3b81b88e9 100755 --- a/src/scripts/website.sh +++ b/src/scripts/website.sh @@ -11,6 +11,13 @@ WEBSITE_SRC_DIR=./www-src rm -rf $WEBSITE_SRC_DIR $WEBSITE_DIR mkdir -p $WEBSITE_SRC_DIR +# build manual as pdf for download +sphinx-build -t website -c "$SPHINX_CONFIG" -b "latex" doc/manual latex +cd latex +pdflatex botan.tex +cd .. + +# build online manual cp readme.rst $WEBSITE_SRC_DIR/index.rst cp -r news.rst doc/security.rst $WEBSITE_SRC_DIR echo -e ".. toctree::\n\n index\n news\n security\n" > $WEBSITE_SRC_DIR/contents.rst @@ -23,5 +30,8 @@ rm -rf $WEBSITE_DIR/manual/.doctrees rm -f $WEBSITE_DIR/manual/.buildinfo cp license.txt doc/pgpkey.txt $WEBSITE_DIR + + +# build doxygen doxygen build/botan.doxy mv build/docs/doxygen $WEBSITE_DIR/doxygen |