Merge pull request #1145 from stuphi/Manual-PDF_version_Index

Add a simple TOC to the front of the PDF manual
This commit is contained in:
Dominic Clifton 2015-07-30 20:24:15 +01:00
commit 999cc48445
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
filename=Manual
doc_files=(
'Introduction.md'
'Getting Started.md'
'Getting Started.md'
'Safety.md'
'Installation.md'
'Configuration.md'
@ -48,7 +48,8 @@ if which gimli >/dev/null; then
cat "$i" >> ${filename}.md
done
rm -f ${filename}.pdf
gimli -f ${filename}.md -stylesheet override.css
gimli -f ${filename}.md -stylesheet override.css \
-w '--toc --title "Cleanflight Manual" --footer-right "[page]" --toc-depth 1'
rm ${filename}.md
popd >/dev/null
else