diff options
| author | (no author) <(no author)@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2002-05-01 02:53:07 +0000 |
|---|---|---|
| committer | (no author) <(no author)@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2002-05-01 02:53:07 +0000 |
| commit | 9e0c8b3997b83945c58c5ede77278f205b97d03e (patch) | |
| tree | 5fdea7c382ce0fdcc49bc2bc0f9e8faaa7f4effc /docutils/tools/html.py | |
| parent | 6a5511292419427c9a4c9258b71c47d072a02878 (diff) | |
| download | docutils-tibs.tar.gz | |
This commit was manufactured by cvs2svn to create branch 'tibs'.tibs
git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/tibs@63 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools/html.py')
| -rwxr-xr-x | docutils/tools/html.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/docutils/tools/html.py b/docutils/tools/html.py deleted file mode 100755 index 66f029364..000000000 --- a/docutils/tools/html.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/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. - -This module takes advantage of the default values defined in `publish()`. -""" - -import sys -from docutils.core import publish -from docutils import utils - -reporter = utils.Reporter(2, 4) -#reporter.setconditions('nodes.Node.walkabout', 2, 4, debug=1) - -if len(sys.argv) == 2: - publish(writername='html', source=sys.argv[1], reporter=reporter) -elif len(sys.argv) == 3: - publish(writername='html', source=sys.argv[1], destination=sys.argv[2], - reporter=reporter) -elif len(sys.argv) > 3: - print >>sys.stderr, 'Maximum 2 arguments allowed.' - sys.exit(1) -else: - publish() |
