2016-11-03 13:45:00 +01:00
|
|
|
all: update_docs_and_apis html pdf
|
2016-11-02 15:33:41 +01:00
|
|
|
|
|
|
|
html:
|
2015-06-18 16:33:34 +02:00
|
|
|
rm -rf docs_tmp
|
|
|
|
rm -rf docs_final
|
|
|
|
cp -r docs docs_tmp
|
|
|
|
cp -r docs docs_final
|
|
|
|
./markdown2mkdocs.py
|
|
|
|
rm -rf docs_tmp
|
2015-05-05 12:07:25 +02:00
|
|
|
mkdocs build --clean
|
2015-07-01 12:11:43 +02:00
|
|
|
./mkdocs2html.py
|
2016-11-02 15:33:41 +01:00
|
|
|
|
|
|
|
pdf:
|
2015-06-05 17:38:11 +02:00
|
|
|
mkdir -p latex
|
|
|
|
cp -r docs/picts latex
|
|
|
|
./markdown2pdf.py
|
|
|
|
cp btstack_gettingstarted.tex latex
|
|
|
|
cd latex && pdflatex btstack_gettingstarted.tex && pdflatex btstack_gettingstarted.tex
|
2015-06-18 16:33:34 +02:00
|
|
|
mv latex/btstack_gettingstarted.pdf btstack.pdf
|
2015-07-01 12:11:43 +02:00
|
|
|
rm -rf latex tmp
|
2016-11-02 15:33:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
preview: update_docs_and_apis html
|
|
|
|
# race condition, open browser before startnig MKdocs
|
|
|
|
open http://127.0.0.1:8000
|
|
|
|
mkdocs serve
|
|
|
|
|
|
|
|
update_docs_and_apis:
|
2016-11-18 18:20:25 +01:00
|
|
|
sed -e "s|../doc/manual/docs/||g" ../../chipset/README.md > docs/chipsets.md
|
2016-11-02 15:33:41 +01:00
|
|
|
rm -rf tmp
|
|
|
|
mkdir tmp
|
|
|
|
./update_apis.py
|
|
|
|
./update_listings.py
|
|
|
|
|
2016-01-21 12:21:03 +01:00
|
|
|
clean:
|
2016-02-18 10:30:27 +01:00
|
|
|
rm -rf docs_final tmp btstack *.pdf latex/btstack_generated.* latex/btstack_final.tex
|
2016-11-18 18:16:17 +01:00
|
|
|
rm -rf docs/appendix/apis.md docs/appendix/index.md docs/examples/examples.md docs/chipsets.md
|
2016-03-09 12:15:34 +01:00
|
|
|
rm -rf docs_tmp latex btstack help
|
2016-03-09 10:34:41 +01:00
|
|
|
|
2015-06-05 15:20:02 +02:00
|
|
|
|
|
|
|
|