aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-03-22 10:54:30 -0400
committerJack Lloyd <[email protected]>2017-03-22 10:54:30 -0400
commit131e32146811fc553220681c132b045e95e02877 (patch)
tree426b1a7115df810b4eb6b2abff17a7e322b32657
parentddb6aa92586bafda7a934c61bd7dab2f1b9ee079 (diff)
parentc4d78dfb19ba082a224d68515fdf249c9b853904 (diff)
Merge GH #923 Build PDF handbook
-rw-r--r--doc/manual/index.rst8
-rwxr-xr-xsrc/scripts/website.sh10
2 files changed, 17 insertions, 1 deletions
diff --git a/doc/manual/index.rst b/doc/manual/index.rst
index 82d5068b4..b27761d37 100644
--- a/doc/manual/index.rst
+++ b/doc/manual/index.rst
@@ -6,7 +6,13 @@ If you need to build the library first, start with :doc:`building`.
Some Linux distributions include packages for Botan, so building from
source may not be required on your system.
-The :ref:`genindex` and :ref:`search` may be useful to get started.
+.. only:: html
+
+ The :ref:`genindex` and :ref:`search` may be useful to get started.
+
+.. only:: html and website
+
+ You can also download this manual as a :download:`PDF <../../latex/botan.pdf>`.
Books and other references
----------------------------
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