comparison doc/build_html.py @ 653:1dcbee29faa7

More work on the documentation - rolled in the work done by Jeff Blaine. Use build_html.py *.stx to build the HTML. We'll move that into the setup script when someone figures how to :)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 08 Mar 2002 23:41:46 +0000
parents
children f5e387cfb825
comparison
equal deleted inserted replaced
652:66b324f895d1 653:1dcbee29faa7
1 #!/usr/bin/env python
2
3 """
4 :Author: David Goodger
5 :Contact: goodger@users.sourceforge.net
6 :Revision: $Revision: 1.1 $
7 :Date: $Date: 2002-03-08 23:41:46 $
8 :Copyright: This module has been placed in the public domain.
9
10 A minimal front-end to the Docutils Publisher.
11
12 This module takes advantage of the default values defined in `publish()`.
13 """
14
15 import sys, os.path
16 from dps.core import publish
17 from dps import utils
18
19 if len(sys.argv) < 2:
20 print >>sys.stderr, 'I need at least one filename'
21 sys.exit(1)
22
23 reporter = utils.Reporter(2, 4)
24
25 for file in sys.argv[1:]:
26 name, ext = os.path.splitext(file)
27 dest = '%s.html'%name
28 print >>sys.stderr, '%s -> %s'%(file, dest)
29 publish(writername='html', source=file, destination=dest,
30 reporter=reporter)
31

Roundup Issue Tracker: http://roundup-tracker.org/