[go: up one dir, main page]

File: rest2htmlnav

package info (click to toggle)
linkchecker 4.9-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,308 kB
  • ctags: 3,736
  • sloc: python: 21,328; lex: 1,114; yacc: 781; ansic: 551; makefile: 244; sh: 100; sql: 19; awk: 4
file content (24 lines) | stat: -rwxr-xr-x 634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python2.4
# -*- coding: iso-8859-1 -*-

# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Copyright: This module has been placed in the public domain.
"""
Produces custom HTML and machine-parseable navigation info
"""

try:
    import locale
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description


description = ('Generates (X)HTML documents and navigation information '
               'from standalone reStructuredText sources.  ' +
               default_description)

publish_cmdline(writer_name='htmlnav', description=description)