From 1f75eb908120a3cf1fab575c46d15a9f8dd8ab7d Mon Sep 17 00:00:00 2001 From: gryf Date: Sat, 4 May 2019 12:24:11 -0600 Subject: [PATCH] Removed xhtml rst2html.py --- rst2html.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 rst2html.py diff --git a/rst2html.py b/rst2html.py deleted file mode 100644 index 0190da0..0000000 --- a/rst2html.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python - -# :Author: David Goodger, the Pygments team, Guenter Milde -# :Date: $Date: $ -# :Copyright: This module has been placed in the public domain. - -# This is a merge of the `Docutils`_ `rst2html` front end with an extension -# suggestion taken from the `Pygments`_ documentation, reworked specifically -# for `Octopress`_. -# -# .. _Pygments: http://pygments.org/ -# .. _Docutils: http://docutils.sourceforge.net/ -# .. _Octopress: http://octopress.org/ - -""" -A front end to docutils, producing HTML with syntax colouring using pygments -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from transform import transform -from docutils.writers.html4css1 import Writer -from docutils.core import default_description -from directives import Pygments - -description = ('Generates (X)HTML documents from standalone reStructuredText ' - 'sources. Uses `pygments` to colorize the content of' - '"code-block" directives. Needs an adapted stylesheet' - + default_description) - -def main(): - return transform(writer=Writer(), part='html_body') - -if __name__ == '__main__': - print(main())