2 # :Copyright: © 2015 Günter Milde.
3 # :License: Released under the terms of the `2-Clause BSD license`_, in short:
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved.
8 # This file is offered as-is, without any warranty.
10 # .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
12 # Revision: $Revision$
16 A minimal front end to the Docutils Publisher, producing HTML 5 documents.
18 The output is also valid XML.
22 import locale
# module missing in Jython
23 locale
.setlocale(locale
.LC_ALL
, '')
27 from docutils
.core
import publish_cmdline
, default_description
29 description
= ('Generates HTML5 documents from standalone '
30 'reStructuredText sources.\n'
31 + default_description
)
33 publish_cmdline(writer
='html5', description
=description
)