PID: P-term LPF on Yaw axis
[betaflight.git] / build_docs.sh
blob9cd7865e09cc37587f530bf94d1e99018aefffce
1 #!/bin/bash
3 filename=Manual
4 doc_files=(
5 'Introduction.md'
6 'Getting Started.md'
7 'Safety.md'
8 'Installation.md'
9 'Configuration.md'
10 'Cli.md'
11 'Serial.md'
12 'Rx.md'
13 'Spektrum bind.md'
14 'Failsafe.md'
15 'Battery.md'
16 'Gps.md'
17 'Rssi.md'
18 'Telemetry.md'
19 'LedStrip.md'
20 'Display.md'
21 'Buzzer.md'
22 'Sonar.md'
23 'Profiles.md'
24 'Modes.md'
25 'Inflight Adjustments.md'
26 'Controls.md'
27 'Gtune.md'
28 'Blackbox.md'
29 'Migrating from baseflight.md'
30 'Boards.md'
31 'Board - AlienWii32.md'
32 'Board - CC3D.md'
33 'Board - ChebuzzF3.md'
34 'Board - CJMCU.md'
35 'Board - ColibriRace.md'
36 'Board - Motolab.md'
37 'Board - Naze32.md'
38 'Board - Olimexino.md'
39 'Board - Paris Air Hero 32.md'
40 'Board - Sparky.md'
41 'Board - RMDO.md'
42 'Board - SPRacingF3.md'
45 if which gimli >/dev/null; then
46 echo "Building ${filename}.pdf"
47 pushd . >/dev/null
48 cd docs
50 rm -f ${filename}.md
51 for i in "${doc_files[@]}"
53 cat "$i" >> ${filename}.md
54 done
55 rm -f ${filename}.pdf
56 gimli -f ${filename}.md -stylesheet override.css \
57 -w '--toc --title "Cleanflight Manual" --footer-right "[page]" --toc-depth 1'
58 rm ${filename}.md
59 popd >/dev/null
60 else
61 echo -e "\nFAILED"
62 echo "Install Gimli to build the PDF documentation"
63 echo -e "https://github.com/walle/gimli\n"
64 exit 1