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