3 # :Copyright: © 2015 Günter Milde.
4 # :License: Released under the terms of the `2-Clause BSD license`_, in short:
6 # Copying and distribution of this file, with or without modification,
7 # are permitted in any medium without royalty provided the copyright
8 # notice and this notice are preserved.
9 # This file is offered as-is, without any warranty.
11 # .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause
13 # Revision: $Revision$
17 A minimal front end to the Docutils Publisher, producing valid XHTML 1.1
21 import locale
# module missing in Jython
22 locale
.setlocale(locale
.LC_ALL
, '')
26 from docutils
.core
import publish_cmdline
, default_description
28 description
= (u
'Generates HTML documents from standalone '
29 u
'reStructuredText sources that conform to the XHTML 1.1 DTD '
31 u
'Requires layout rules provided by CSS 2.1 stylesheets '
32 u
'``html-base.css`` and ``xhtml11.css`` (or equivalent).'
33 + default_description
)
35 publish_cmdline(writer_name
='xhtml11', description
=description
)