btstack/doc/manual/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

2017-12-23 21:22:41 +00:00
all: update_apis_and_listings html pdf
2018-01-08 11:39:43 +00:00
html:
# create docs/ports/existing_ports.md + adds images
./ports2markdown.py
# re-create docs_final
2015-06-18 14:33:34 +00:00
cp -r docs docs_final
2017-12-23 21:22:41 +00:00
# docs -> docs_final
2015-06-18 14:33:34 +00:00
./markdown2mkdocs.py
mkdocs build --clean
2018-01-08 11:39:43 +00:00
# ./mkdocs2html.py
pdf:
2015-06-05 15:38:11 +00:00
mkdir -p latex
cp -r docs/picts latex
2017-12-23 21:22:41 +00:00
# create docs/ports/existing_ports.md
./ports2markdown.py
2017-12-23 21:22:41 +00:00
# create latex/btstack_generated.md -> latex/btstack_final.tex
./markdown2tex.py
2015-06-05 15:38:11 +00:00
cp btstack_gettingstarted.tex latex
cp docs/ports/*.jpg latex
2015-06-05 15:38:11 +00:00
cd latex && pdflatex btstack_gettingstarted.tex && pdflatex btstack_gettingstarted.tex
2015-06-18 14:33:34 +00:00
mv latex/btstack_gettingstarted.pdf btstack.pdf
rm -rf latex tmp
2017-12-23 21:22:41 +00:00
preview: update_apis_and_listings html
# race condition, open browser before startnig MKdocs
open http://127.0.0.1:8000
mkdocs serve
2017-12-23 21:22:41 +00:00
update_apis_and_listings:
2016-11-18 17:20:25 +00:00
sed -e "s|../doc/manual/docs/||g" ../../chipset/README.md > docs/chipsets.md
rm -rf tmp
mkdir tmp
2017-12-23 21:22:41 +00:00
# create docs/appendix/apis.md
./update_apis.py
2017-12-23 21:22:41 +00:00
# create docs/examples/examples.md
./update_listings.py
clean:
2016-02-18 09:30:27 +00:00
rm -rf docs_final tmp btstack *.pdf latex/btstack_generated.* latex/btstack_final.tex
rm -rf docs/appendix/apis.md docs/appendix/index.md docs/examples/examples.md docs/chipsets.md
2017-12-23 21:22:41 +00:00
rm -rf latex btstack help
2016-03-09 09:34:41 +00:00