Skip to content

Commit

Permalink
Delete output directory before creating the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Jan 17, 2013
1 parent e7226cf commit c4736a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/tools/docs/build_html_brian2.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
import shutil
import generate_references
# first generate the reference documentation
abs_root = os.path.abspath('../../../brian2')
generate_references.main(abs_root, ['tests'], '../../../docs_sphinx/reference')

os.chdir('../../../docs_sphinx')

shutil.rmtree('../docs')
os.system('sphinx-build -b html . ../docs')

0 comments on commit c4736a3

Please sign in to comment.