dev/tools/docs/build_dash_docset.py
raw| 1 | import brian2 |
| 2 | import sphinx |
| 3 | import doc2dash |
| 4 | import sys |
| 5 | import os |
| 6 | |
| 7 | # - Build documentation with Sphinx |
| 8 | os.chdir('../../../docs_sphinx') |
| 9 | sphinx.main(['sphinx-build', '-b', 'html', '-d', '_build/doctrees', '.', '_build/html']) |
| 10 | |
| 11 | # - Run doc2dash on the built documentation |
| 12 | os.system('doc2dash _build/html/ -n Brian2 -I index.html -d ..') |