task_python_docs.sh 446 Bytes
Newer Older
1
#!/bin/bash
2 3
mkdir -p docs/_build/html
rm -rf docs/_build/html/jsdoc
4 5 6 7

# remove stale tutorials and always build from scratch.
rm -rf docs/tutorials

8 9 10 11 12 13 14
# C++ doc
make doc

# JS doc
jsdoc web/tvm_runtime.js web/README.md || exit -1
mv out docs/_build/html/jsdoc || exit -1

15
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
16

17
cd docs
18
PYTHONPATH=`pwd`/../python make html || exit -1
19 20 21
cd _build/html
tar czf docs.tgz *
mv docs.tgz ../../../