File: build_dash_docset.py

package info (click to toggle)
brian 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,872 kB
  • sloc: python: 51,820; cpp: 2,033; makefile: 108; sh: 72
file content (13 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
import brian2
import sphinx
import doc2dash
import sys
import os

# - Build documentation with Sphinx
os.chdir('../../../docs_sphinx')
sphinx.main(['sphinx-build', '-b', 'html', '-d', '_build/doctrees', '.', '_build/html'])

# - Run doc2dash on the built documentation
os.system('doc2dash _build/html/ -n Brian2 -I index.html -d ..')