|
Revision 10307, 0.7 kB
(checked in by dave, 12 months ago)
|
|
docutils for creating BEPs.
These are heavily derived from David Goodger's scripts for generating
Python PEPs.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | # Author: David Goodger <goodger@python.org> |
|---|
| 4 | # Author: David Harrison <dave@bittorrent.com> |
|---|
| 5 | # Copyright: This module has been placed in the public domain. |
|---|
| 6 | |
|---|
| 7 | # This is almost identical to rstpep2html.py --David Harrison |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | """ |
|---|
| 11 | A minimal front end to the Docutils Publisher, producing HTML from PEP |
|---|
| 12 | (Python Enhancement Proposal) documents. |
|---|
| 13 | """ |
|---|
| 14 | |
|---|
| 15 | try: |
|---|
| 16 | import locale |
|---|
| 17 | locale.setlocale(locale.LC_ALL, '') |
|---|
| 18 | except: |
|---|
| 19 | pass |
|---|
| 20 | |
|---|
| 21 | from docutils.core import publish_cmdline, default_description |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | description = ('Generates (X)HTML from reStructuredText-format BEP files. ' |
|---|
| 25 | + default_description) |
|---|
| 26 | |
|---|
| 27 | publish_cmdline(reader_name='bep', writer_name='bep_html', |
|---|
| 28 | description=description) |
|---|