4 # Contact: swfiua@gmail.com
7 # Copyright: This module has been placed in the public domain.
10 A minimal front end to the Docutils Publisher, producing HTML.
12 Extended to add support for a latex directive.
14 Latex code is processed by latex and turned into a png.
19 locale
.setlocale(locale
.LC_ALL
, '')
23 from docutils
.core
import publish_cmdline
, Publisher
, default_description
25 import latex_directive
26 latex_directive
.register() # Enable the ABC directive
28 description
= ('Generates (X)HTML documents from standalone reStructuredText '
29 'sources. ' + default_description
)
31 publish_cmdline(writer_name
='html', description
=description
)