/[navidoc]/navidoc/navidoc/directives/pegboard.py
ViewVC logotype

Diff of /navidoc/navidoc/directives/pegboard.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by humppake, Tue Apr 29 09:14:22 2003 UTC revision 1.20 by humppake, Thu May 22 10:52:20 2003 UTC
# Line 139  def build_pegtable(): Line 139  def build_pegtable():
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
# Line 155  def build_pegtable(): Line 155  def build_pegtable():
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')

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26