16 |
# |
# |
17 |
|
|
18 |
import sys, os |
import sys, os |
19 |
import umltool, umlrst |
import umltool |
20 |
|
|
21 |
# must be run in the main directory of gzz module |
# must be run in the main directory of gzz module |
22 |
|
|
44 |
umltool.settings['to_root'] = "".join(["../" for i in range(depth)]) |
umltool.settings['to_root'] = "".join(["../" for i in range(depth)]) |
45 |
|
|
46 |
def rst2html(path): |
def rst2html(path): |
47 |
import docutils.core |
import umlrst, docutils.core |
48 |
#the first pass - converts rst into html |
#the first pass - converts rst into html |
49 |
if path.endswith(".rst"): path = path[0:len(path)-4] |
if path.endswith(".rst"): path = path[0:len(path)-4] |
50 |
args = '-stg --stylesheet '+umltool.settings['to_root']\ |
args = '-stg --stylesheet '+umltool.settings['to_root']\ |