diff options
| author | bbum <bbum@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-12-03 18:45:07 +0000 |
|---|---|---|
| committer | bbum <bbum@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-12-03 18:45:07 +0000 |
| commit | 2d729c2efcbfe2b7f565bba45c02ea69a36b8c97 (patch) | |
| tree | 551d76431df1f4408d1477d60294d8206dc4f4a2 | |
| parent | 9810caa640eceab1a8c3f73c8c5ce5a7fd1f2bee (diff) | |
| download | docutils-2d729c2efcbfe2b7f565bba45c02ea69a36b8c97.tar.gz | |
rst2html.py added and installed by setup.py
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1756 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
| -rw-r--r-- | HISTORY.txt | 9 | ||||
| -rwxr-xr-x | setup.py | 3 | ||||
| -rwxr-xr-x | tools/rst2html.py | 25 |
3 files changed, 36 insertions, 1 deletions
diff --git a/HISTORY.txt b/HISTORY.txt index dbbf0466b..157023654 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -199,6 +199,15 @@ Changes Since 0.3 - Updated for configuration file reorganization. +* tools/rst2html.py: + + - copied from tools/html.py + +* setup.py: + + - added a 'scripts' section to configuration + - added 'tools/rst2html.py' to the scripts section + Release 0.3 (2003-06-24) ======================== @@ -41,7 +41,8 @@ what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60 'docutils.parsers.rst.languages', 'docutils.readers', 'docutils.readers.python', 'docutils.transforms', - 'docutils.writers',],} + 'docutils.writers',], + 'scripts' : ['tools/rst2html.py',],} """Distutils setup parameters.""" classifiers = [ diff --git a/tools/rst2html.py b/tools/rst2html.py new file mode 100755 index 000000000..98293b3a1 --- /dev/null +++ b/tools/rst2html.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +# Author: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML. +""" + +import locale +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html', description=description) |
