139 |
config.mp_generate = 0 |
config.mp_generate = 0 |
140 |
for rstfile in rstfiles: |
for rstfile in rstfiles: |
141 |
config.input_filename = rstfile |
config.input_filename = rstfile |
142 |
config.output_filename = rstfile[0:len(rstfile)-4]+'.gen.html' |
config.output_filename = rstfile[0:len(rstfile)-4]+config.midfix+'.html' |
143 |
pub = Publisher() |
pub = Publisher() |
144 |
pub.set_reader('standalone', None, 'restructuredtext') |
pub.set_reader('standalone', None, 'restructuredtext') |
145 |
filename = slashify(config.working_directory)+rstfile |
filename = slashify(config.working_directory)+rstfile |
155 |
#conversion have succeeded so far, parsing peg's metadata |
#conversion have succeeded so far, parsing peg's metadata |
156 |
#from its document tree |
#from its document tree |
157 |
if rstfile == peg['rst']: |
if rstfile == peg['rst']: |
158 |
peg['html'] = rstfile[0:len(rstfile)-4]+'.gen.html' |
peg['html'] = rstfile[0:len(rstfile)-4]+config.midfix+'.html' |
159 |
peg['topic'] = getTagValue(document, 'title', always_raw=1) |
peg['topic'] = getTagValue(document, 'title', always_raw=1) |
160 |
peg['topic'] = peg['topic'] |
peg['topic'] = peg['topic'] |
161 |
peg['last-modified'] = getFieldTagValue(document, 'last-modified') |
peg['last-modified'] = getFieldTagValue(document, 'last-modified') |