blob: fe1f68c788eb34c97e54c26556853704954244f4 (
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
|
#!/usr/bin/env python
# Author: Bill Bumgarner
# Contact: bbum@codefab.com
# Copyright: This module has been placed in the public domain.
"""
docarticle.py
=============
This module provides a simple command line interface that uses the
DocArticle HTML writer to produce plain HTML output from
ReStructuredText source.
"""
import locale
try:
locale.setlocale(locale.LC_ALL, '')
except:
pass
from docutils.core import publish_cmdline, default_description
from DocArticle import DocArticleWriter
description = ("Generates plain HTML. " + default_description)
publish_cmdline(writer=DocArticleWriter(), description=description)
|