mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-28 07:49:45 +00:00
Merge pull request #1163 from revarbat/revarbat_dev
Added mkdocspdf.sh script.
This commit is contained in:
commit
99c3f460a9
1 changed files with 29 additions and 0 deletions
29
scripts/mkdocspdf.sh
Executable file
29
scripts/mkdocspdf.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
FORMAT=pdf
|
||||
SUFFIX=pdf
|
||||
SOURCES="*.scad.md Tutorial-*.md Topics.md AlphaIndex.md"
|
||||
PANDOC="/usr/local/Cellar/pandoc/3.1/bin/pandoc"
|
||||
TITLE="Documentation for the Belfry OpenSCAD Library v2"
|
||||
AUTHOR="Garth Minette"
|
||||
|
||||
if [[ ! -d BOSL2.wiki ]] ; then
|
||||
echo "Must be in the BOSL2 directory."
|
||||
exit 255
|
||||
fi
|
||||
|
||||
cd BOSL2.wiki
|
||||
|
||||
${PANDOC} -f gfm -t ${FORMAT} -o ../documentation.${SUFFIX} \
|
||||
-s --embed-resources --mathjax --file-scope --pdf-engine=xelatex \
|
||||
--toc --columns=100 --epub-cover-image=../images/BOSL2logo.png \
|
||||
--variable mainfont=Arial --variable sansfont=Arial \
|
||||
--metadata title="${TITLE}" \
|
||||
--metadata author="${AUTHOR}" \
|
||||
--metadata date="$(date -j "+%B %e, %Y")" \
|
||||
--metadata geometry=left=3cm,right=3cm,top=2cm,bottom=2cm \
|
||||
${SOURCES}
|
||||
|
||||
cd ..
|
||||
|
||||
|
Loading…
Reference in a new issue