32 |
import sys, os, getopt |
import sys, os, getopt |
33 |
import docutils.core |
import docutils.core |
34 |
|
|
|
import navidoc |
|
35 |
import config |
import config |
36 |
|
|
37 |
|
import navidoc.directives |
38 |
|
import navidoc.writers |
39 |
|
|
40 |
from navidoc.utils.path import _slashify, _listdir |
from navidoc.utils.path import _slashify, _listdir |
41 |
|
|
42 |
""" |
""" |
156 |
while 1: |
while 1: |
157 |
|
|
158 |
#the first pass, docutils |
#the first pass, docutils |
159 |
for path in sys.argv: |
for filepath in sys.argv: |
160 |
run_docutils(path) |
run_docutils(filepath) |
161 |
|
|
162 |
#the second pass, postprocess |
#the second pass, postprocess |
163 |
for path in sys.argv: |
for filepath in sys.argv: |
164 |
postprocess(path) |
postprocess(filepath) |
165 |
|
|
166 |
# try: |
# try: |
167 |
# run_convert(path) |
# run_convert(path) |