27 |
|
|
28 |
__docformat__ = 'reStructuredText' |
__docformat__ = 'reStructuredText' |
29 |
|
|
30 |
import sys, os.path, getopt |
import sys, os, getopt |
|
|
|
31 |
import docutils.core |
import docutils.core |
32 |
|
import navidoc |
|
from navidoc.utils.path import _rstFiles, _slashify, relative_path |
|
33 |
|
|
34 |
import config |
import config |
35 |
|
|
94 |
args = "--config "+config.docutils+" "+input+' '+output |
args = "--config "+config.docutils+" "+input+' '+output |
95 |
docutils.core.publish_cmdline(writer_name='latex', argv=args.split()) |
docutils.core.publish_cmdline(writer_name='latex', argv=args.split()) |
96 |
|
|
|
|
|
97 |
# catching loop parameters from the command line |
# catching loop parameters from the command line |
98 |
try: sys.argv.remove('--loop'); loop = 1 |
try: sys.argv.remove('--loop'); loop = 1 |
99 |
except ValueError: loop = 0 |
except ValueError: loop = 0 |