#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. # This file is offered as-is, without any warranty. # # .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause # # Revision: $Revision$ # Date: $Date$ """ A minimal front end to the Docutils Publisher, producing valid XHTML 1.1 """ try: import locale # module missing in Jython locale.setlocale(locale.LC_ALL, '') except locale.Error: pass from docutils.core import publish_cmdline, default_description description = (u'Generates HTML documents from standalone ' u'reStructuredText sources that conform to the XHTML 1.1 DTD ' u'(strict XHTML). ' u'Requires layout rules provided by CSS 2.1 stylesheets ' u'``html-base.css`` and ``xhtml11.css`` (or equivalent).' + default_description) publish_cmdline(writer_name='xhtml11', description=description)