source: specdomain/src/specdomain/test/starter.py @ 919

Last change on this file since 919 was 919, checked in by jemian, 11 years ago

refs #8, rest for the night

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 710 bytes
Line 
1#!/usr/bin/env python
2
3# $Id: starter.py 919 2012-06-12 22:10:09Z jemian $
4
5'''
6Builds Sphinx documentation
7(and provides a way to use the source-code debugger for the process)
8'''
9
10import os
11import sphinx
12import sys
13
14
15def force_rebuild_all():
16    if os.path.exists('_build/doctrees'):
17        garbage_list = [
18            '_build/doctrees/environment.pickle',
19            '_build/doctrees/index.doctree',
20            '_build/doctrees/test_doc.doctree',
21        ]
22        for item in garbage_list:
23            if os.path.exists(item):
24                os.remove(item)
25        os.rmdir('_build/doctrees')
26
27
28if __name__ == '__main__':
29    force_rebuild_all()
30    args = [sys.argv[0]] + "-b html -d _build/doctrees . _build/html".split()
31    sphinx.main(args)
Note: See TracBrowser for help on using the repository browser.