137 |
#converts all rsts' in pegdirs and parses pegs' meta information |
#converts all rsts' in pegdirs and parses pegs' meta information |
138 |
#from pegs' main files |
#from pegs' main files |
139 |
for pegdir in pegdirs: |
for pegdir in pegdirs: |
140 |
print 'Process PEG %s' % (pegdir) |
print 'Processing PEG %s' % (pegdir) |
141 |
|
|
142 |
peg = {'authors': '', 'status': undefined, 'topic': pegdir, 'stakeholders': '', |
peg = {'authors': '', 'status': undefined, 'topic': pegdir, 'stakeholders': '', |
143 |
'date': '', 'dir': pegdir, 'files': '', 'html': '', 'rst': '', |
'date': '', 'dir': pegdir, 'files': '', 'html': '', 'rst': '', |
175 |
pub.apply_transforms(document) |
pub.apply_transforms(document) |
176 |
output = pub.writer.write(document, pub.destination) |
output = pub.writer.write(document, pub.destination) |
177 |
peg['cvsignore'].append(rstfile[0:len(rstfile)-4]+'.html') |
peg['cvsignore'].append(rstfile[0:len(rstfile)-4]+'.html') |
|
peg['html'] = rstfile[0:len(rstfile)-4]+'.html' |
|
178 |
|
|
179 |
#conversion have succeeded so far, parsing peg's metadata |
#conversion have succeeded so far, parsing peg's metadata |
180 |
#from its document tree |
#from its document tree |
181 |
if rstfile == peg['rst']: |
if rstfile == peg['rst']: |
182 |
|
peg['html'] = rstfile[0:len(rstfile)-4]+'.html' |
183 |
peg['topic'] = getTagValue(document, 'title', always_raw=1) |
peg['topic'] = getTagValue(document, 'title', always_raw=1) |
184 |
peg['topic'] = peg['topic'] |
peg['topic'] = peg['topic'] |
185 |
#mark literates in topic |
#mark literates in topic |