details to MR and references
[docutils.git] / docutils / tools / rst2html5.py
blobf745205d533f22ac9053c3b9052ab6326019aa4d
1 #!/usr/bin/env python3
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$
13 # Date: $Date$
15 """
16 A minimal front end to the Docutils Publisher, producing HTML 5 documents.
18 The output is also valid XML.
19 """
21 try:
22 import locale # module missing in Jython
23 locale.setlocale(locale.LC_ALL, '')
24 except locale.Error:
25 pass
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_name='html5', description=description)