From c4d78dfb19ba082a224d68515fdf249c9b853904 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Thu, 16 Mar 2017 17:12:47 +0100 Subject: 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. --- src/scripts/website.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/scripts') 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 -- cgit v1.2.3