Remove unused define
[inav.git] / build_docs.sh
blob9711d8775cfa9cff217ce37dd854d2546e611372
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 'Inflight Adjustments.md'
25 'Controls.md'
26 'Gtune.md'
27 'Blackbox.md'
28 'Migrating from baseflight.md'
29 'Boards.md'
30 'Board - AlienFlight.md'
31 'Board - ColibriRace.md'
32 'Board - Motolab.md'
33 'Board - Paris Air Hero 32.md'
34 'Board - Sparky.md'
35 'Board - RMDO.md'
36 'Board - SPRacingF3.md'
39 if which gimli >/dev/null; then
40 echo "Building ${filename}.pdf"
41 pushd . >/dev/null
42 cd docs
44 rm -f ${filename}.md
45 for i in "${doc_files[@]}"
47 cat "$i" >> ${filename}.md
48 done
49 rm -f ${filename}.pdf
50 gimli -f ${filename}.md -stylesheet override.css \
51 -w '--toc --title "INAV Manual" --footer-right "[page]" --toc-depth 1'
52 rm ${filename}.md
53 popd >/dev/null
54 else
55 echo -e "\nFAILED"
56 echo "Install Gimli to build the PDF documentation"
57 echo -e "https://github.com/walle/gimli\n"
58 exit 1