From 2d729c2efcbfe2b7f565bba45c02ea69a36b8c97 Mon Sep 17 00:00:00 2001 From: bbum Date: Wed, 3 Dec 2003 18:45:07 +0000 Subject: 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 --- tools/rst2html.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tools/rst2html.py (limited to 'tools/rst2html.py') 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) -- cgit v1.2.1 From f877afc0916de9f9177df646b34f4d6157808693 Mon Sep 17 00:00:00 2001 From: orutherfurd Date: Sun, 28 Mar 2004 15:39:27 +0000 Subject: moved locale imports into try blocks, for Jython compatibility git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1896 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rst2html.py') diff --git a/tools/rst2html.py b/tools/rst2html.py index 98293b3a1..df09e52fd 100755 --- a/tools/rst2html.py +++ b/tools/rst2html.py @@ -10,8 +10,8 @@ A minimal front end to the Docutils Publisher, producing HTML. """ -import locale try: + import locale locale.setlocale(locale.LC_ALL, '') except: pass -- cgit v1.2.1 From 854b38920eca626cd3bb72ed74026cdd93541160 Mon Sep 17 00:00:00 2001 From: goodger Date: Sun, 27 Jun 2004 03:32:25 +0000 Subject: updated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2391 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rst2html.py') diff --git a/tools/rst2html.py b/tools/rst2html.py index df09e52fd..35e5558aa 100755 --- a/tools/rst2html.py +++ b/tools/rst2html.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # Author: David Goodger -# Contact: goodger@users.sourceforge.net +# Contact: goodger@python.org # Revision: $Revision$ # Date: $Date$ # Copyright: This module has been placed in the public domain. -- cgit v1.2.1 From 5c90ddc006b36818e727b4a42196a708b2a78a25 Mon Sep 17 00:00:00 2001 From: wiemann Date: Wed, 24 Aug 2005 21:33:21 +0000 Subject: made _stylesheet_required setting default to 0, activating it in the rst2html.py front-end tool git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3830 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/rst2html.py') diff --git a/tools/rst2html.py b/tools/rst2html.py index 35e5558aa..7fa3aebc4 100755 --- a/tools/rst2html.py +++ b/tools/rst2html.py @@ -22,4 +22,5 @@ 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) +publish_cmdline(writer_name='html', description=description, + settings_overrides={'_stylesheet_required': 1}) -- cgit v1.2.1 From 1b0c89fafde2292c03a0a21822ba083dca903bb1 Mon Sep 17 00:00:00 2001 From: goodger Date: Sun, 25 Sep 2005 15:49:54 +0000 Subject: added docutils/writers/support/ directory and removed tools/stylesheets/; updated defaults; removed docutils/transforms/html.py (no longer needed); removed ``_stylesheet_required`` internal setting; updated setup.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/rst2html.py') diff --git a/tools/rst2html.py b/tools/rst2html.py index 7fa3aebc4..35e5558aa 100755 --- a/tools/rst2html.py +++ b/tools/rst2html.py @@ -22,5 +22,4 @@ 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, - settings_overrides={'_stylesheet_required': 1}) +publish_cmdline(writer_name='html', description=description) -- cgit v1.2.1