blob: e0c7a779ae215a2182b2ab1147a160a03a79ce53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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)
|