File: make_html.py

package info (click to toggle)
python-networkx 0.32-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,332 kB
  • ctags: 1,020
  • sloc: python: 21,197; makefile: 67; sh: 11
file content (10 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

from glob import glob
import os
for filename in glob('*.txt'):
    basename=os.path.splitext(filename)[0]  # get extension
    print filename,basename+'.html'
    os.system("rst2html.py %s > %s.html"%(filename,basename))

os.system("epydoc -v --docformat=restructuredtext -o reference networkx")