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. |
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 = '' |