Last change
on this file since 995 was
995,
checked in by jemian, 10 years ago
|
refs #8, bring this up to date
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
662 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | # $Id: starter.py 995 2012-07-06 21:11:36Z jemian $ |
---|
4 | |
---|
5 | ''' |
---|
6 | Builds Sphinx documentation |
---|
7 | (and provides a way to use the source-code debugger for the process) |
---|
8 | ''' |
---|
9 | |
---|
10 | import os |
---|
11 | import sphinx |
---|
12 | import sys |
---|
13 | |
---|
14 | import os |
---|
15 | import sphinx |
---|
16 | import sys |
---|
17 | |
---|
18 | |
---|
19 | def force_rebuild_all(parent = '_build'): |
---|
20 | ''' |
---|
21 | Delete the pickle file. |
---|
22 | |
---|
23 | :param str parent: path to *build* subdirectory (either ``build`` or ``_build``) |
---|
24 | ''' |
---|
25 | pickle_file = parent+'/doctrees/environment.pickle' |
---|
26 | if os.path.exists(pickle_file): |
---|
27 | os.remove(pickle_file) |
---|
28 | |
---|
29 | |
---|
30 | if __name__ == '__main__': |
---|
31 | force_rebuild_all() |
---|
32 | args = [sys.argv[0]] + "-b html -d _build/doctrees . _build/html".split() |
---|
33 | sphinx.main(args) |
---|
Note: See
TracBrowser
for help on using the repository browser.