Debian Codegraph @

tools/rst2html5.py

raw symbols SCIP
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:
4 #
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.
9 #
10 # .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
11 #
12 # Revision: $Revision: 9771 $
13 # Date: $Date: 2024-06-18 10:00:10 +0200 (Di, 18. Jun 2024) $
14
15 """
16 A minimal front end to the Docutils Publisher, producing HTML 5 documents.
17
18 The output is also valid XML.
19 """
20
21 try:
22 import locale # module missing in Jython
23 locale.setlocale(locale.LC_ALL, '')
24 except locale.Error:
25 pass
26
27 from docutils.core import publish_cmdline, default_description
28
29 description = ('Generates HTML5 documents from standalone '
30 'reStructuredText sources.\n'
31 + default_description)
32
33 publish_cmdline(writer='html5', description=description)