1 |
#!/usr/bin/env python |
#!/usr/bin/env python |
2 |
|
|
3 |
""" |
# Author: David Goodger |
4 |
:Author: David Goodger |
# Contact: goodger@users.sourceforge.net |
5 |
:Contact: goodger@users.sourceforge.net |
# Revision: $Revision$ |
6 |
:Revision: $Revision$ |
# Date: $Date$ |
7 |
:Date: $Date$ |
# Copyright: This module has been placed in the public domain. |
|
:Copyright: This module has been placed in the public domain. |
|
8 |
|
|
9 |
A minimal front end to the Docutils Publisher, producing HTML. |
""" |
10 |
|
A minimal front end to the Docutils Publisher, producing pseudo-XML. |
11 |
""" |
""" |
12 |
|
|
13 |
import locale |
import locale |
14 |
locale.setlocale(locale.LC_ALL, '') |
try: |
15 |
|
locale.setlocale(locale.LC_ALL, '') |
16 |
|
except: |
17 |
|
pass |
18 |
|
|
19 |
from docutils.core import publish, default_description |
from docutils.core import publish_cmdline, default_description |
20 |
|
|
21 |
|
|
22 |
description = ('Generates (X)HTML documents from standalone reStructuredText ' |
description = ('Generates HTML from standalone reStructuredText ' |
23 |
'sources. ' + default_description) |
'sources (for testing purposes). ' + default_description) |
24 |
|
|
25 |
publish(writer_name='html', description=description) |
publish_cmdline(writer_name='html', description=description) |