Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds make html that does not build the manual as pdf #3620

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ manuals: doc
doc: gap$(EXEEXT) doc/make_doc
doc/make_doc

html: gap$(EXEEXT) doc/make_doc
doc/make_doc nopdf

clean-doc:
rm -f doc/*/chap*.html doc/*/chap*.txt doc/*/*.css doc/*/*.js
rm -f doc/*/chooser.html doc/*/manual*.pdf
Expand Down
10 changes: 7 additions & 3 deletions doc/make_doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ set -o pipefail

GAP=@abs_top_builddir@/bin/gap.sh
GAPARGS="-b -m 1g -x 80 -q -r --quitonbreak"

if [ "$1" == "nopdf" ]; then
NOPDF=", \"nopdf\""
else
NOPDF=""
fi
echo "--------------------"
echo "Building GAP manuals"
echo "--------------------"
Expand Down Expand Up @@ -41,7 +45,7 @@ for run in [1,2] do
if run = 2 then
# create black&white version of manual (but only on second run)
SetGapDocLaTeXOptions("nocolor", latexOpts);
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" );;
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" $NOPDF );;

# Rename the generated black&white PDF
f1 := Filename(dir, "manual.pdf");
Expand All @@ -58,7 +62,7 @@ for run in [1,2] do

# create manuals with color
SetGapDocLaTeXOptions("color", latexOpts);
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" );;
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" $NOPDF);;
od;
od;
EOF