From 2ba947380f5d5fc0e3e144084af5c20507ecc8f7 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 28 Apr 2017 15:49:03 -0700 Subject: [PATCH] doc: generate PDF version of Doxygen output Change-Id: Id21c369a7c6a6e73894b8458dfefd3c8c411211e Signed-off-by: Daniel Verkamp --- autobuild.sh | 6 ++++++ doc/Doxyfile | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 47167f10f..c1ecf2dbe 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -67,8 +67,14 @@ fi timing_enter doxygen if hash doxygen; then (cd "$rootdir"/doc; $MAKE $MAKEFLAGS) &> "$out"/doxygen.log + if hash pdflatex; then + (cd "$rootdir"/doc/output/latex && $MAKE $MAKEFLAGS) &>> "$out"/doxygen.log + fi mkdir -p "$out"/doc mv "$rootdir"/doc/output/html "$out"/doc + if [ -f "$rootdir"/doc/output/latex/refman.pdf ]; then + mv "$rootdir"/doc/output/latex/refman.pdf "$out"/doc.pdf + fi rm -rf "$rootdir"/doc/output fi timing_exit doxygen diff --git a/doc/Doxyfile b/doc/Doxyfile index 57dc89278..3f4393a61 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -1610,7 +1610,7 @@ EXTRA_SEARCH_MAPPINGS = # If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output. # The default value is: YES. -GENERATE_LATEX = NO +GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of @@ -1653,7 +1653,7 @@ COMPACT_LATEX = NO # The default value is: a4. # This tag requires that the tag GENERATE_LATEX is set to YES. -PAPER_TYPE = a4 +PAPER_TYPE = letter # The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names # that should be included in the LaTeX output. The package can be specified just @@ -1737,7 +1737,7 @@ USE_PDFLATEX = YES # The default value is: NO. # This tag requires that the tag GENERATE_LATEX is set to YES. -LATEX_BATCHMODE = NO +LATEX_BATCHMODE = YES # If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the # index chapters (such as File Index, Compound Index, etc.) in the output.