/[gzz]/gzz/metacode/umldoc.py
ViewVC logotype

Diff of /gzz/metacode/umldoc.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by humppake, Tue Dec 17 14:22:21 2002 UTC revision 1.4 by humppake, Tue Dec 17 14:36:41 2002 UTC
# Line 16  Line 16 
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    
# Line 44  def set_to_root(path): Line 44  def set_to_root(path):
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']\

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26