148 |
settings['context'] = path |
settings['context'] = path |
149 |
#the first pass - converts rst into html |
#the first pass - converts rst into html |
150 |
if path.endswith(".rst"): path = path[0:len(path)-4] |
if path.endswith(".rst"): path = path[0:len(path)-4] |
151 |
args = '-stg --stylesheet '+settings['to_css']\ |
args = '-i ISO8859_1 -stg --stylesheet '+settings['to_css']\ |
152 |
+' '+path+'.rst '+path+'.gen.html' |
+' '+path+'.rst '+path+'.gen.html' |
153 |
docutils.core.publish_cmdline(writer_name='html', argv=args.split()) |
docutils.core.publish_cmdline(writer_name='html', argv=args.split()) |
154 |
|
|
162 |
if classes: |
if classes: |
163 |
documentclass = '--documentclass %s ' % (os.path.splitext(classes[0])[0]) |
documentclass = '--documentclass %s ' % (os.path.splitext(classes[0])[0]) |
164 |
elif path.find("benja-diff-fa/") != -1: |
elif path.find("benja-diff-fa/") != -1: |
165 |
documentclass = '--documentclass book --documentclass-options 12pt,a4 --use-latex-toc 1 ' |
documentclass = '-i ISO8859_1 --documentclass book --documentclass-options 12pt,a4 --use-latex-toc 1 ' |
166 |
else: |
else: |
167 |
documentclass = '' |
documentclass = '' |
168 |
args = documentclass+path+'.rst '+path+'.gen.latex' |
args = documentclass+path+'.rst '+path+'.gen.latex' |