/[navidoc]/navidoc/rst2any.py
ViewVC logotype

Diff of /navidoc/rst2any.py

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

revision 1.17 by humppake, Mon Mar 31 15:24:19 2003 UTC revision 1.18 by humppake, Tue Apr 1 13:54:09 2003 UTC
# Line 41  import navidoc.modules Line 41  import navidoc.modules
41  from navidoc.utils.path import *  from navidoc.utils.path import *
42    
43  import navidoc.mp.uml  import navidoc.mp.uml
44    import navidoc.link.javadoc
45    
46  """  """
47  The main frontend for running Navidoc.  The main frontend for running Navidoc.
# Line 134  def run_docutils(path): Line 135  def run_docutils(path):
135              config.docutils = slashify(path) + 'docutils.conf'              config.docutils = slashify(path) + 'docutils.conf'
136          for entry in dirlist:          for entry in dirlist:
137              run_docutils(slashify(path)+entry)              run_docutils(slashify(path)+entry)
138    
139      elif os.path.isfile(path):      elif os.path.isfile(path):
140          config.working_directory = os.path.normpath(os.path.dirname(path))          config.working_directory = os.path.normpath(os.path.dirname(path))
141            if os.path.isfile(slashify(config.working_directory) + 'docutils.conf'):
142                config.docutils = slashify(config.working_directory) + 'docutils.conf'
143          config.input_filename = os.path.basename(path)          config.input_filename = os.path.basename(path)
144          rst2any(path)          rst2any(path)
145                    
146      elif os.path.isfile(path+'.rst'):      elif os.path.isfile(path+'.rst'):
147          config.working_directory = os.path.normpath(os.path.dirname(path))          config.working_directory = os.path.normpath(os.path.dirname(path))
148            if os.path.isfile(slashify(config.working_directory) + 'docutils.conf'):
149                config.docutils = slashify(config.working_directory) + 'docutils.conf'
150          config.input_filename = os.path.basename(path+'.rst')          config.input_filename = os.path.basename(path+'.rst')
151          rst2any(path+'.rst')          rst2any(path+'.rst')
152      config.input_filename = ''      config.input_filename = ''

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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