Changeset 10490 for dotorg/trunk/docutils/docutils/writers
- Timestamp:
- 01/31/2008 02:47:16 AM (10 months ago)
- Location:
- dotorg/trunk/docutils/docutils/writers/bep_html
- Files:
-
- 2 modified
-
__init__.py (modified) (3 diffs)
-
template.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotorg/trunk/docutils/docutils/writers/bep_html/__init__.py
r10489 r10490 9 9 __docformat__ = 'reStructuredText' 10 10 11 bthome = "http://www.bittorrent.org" 11 12 12 13 import sys … … 67 68 settings = self.document.settings 68 69 pyhome = settings.python_home 69 #subs['pyhome'] = pyhome70 subs['pyhome'] = pyhome 70 71 subs['bthome'] = bthome 71 72 subs['bephome'] = settings.bep_home … … 76 77 index = self.document.first_child_matching_class(nodes.field_list) 77 78 header = self.document[index] 78 self. pepnum = header[0][1].astext()79 subs[' pep'] = self.pepnum79 self.bepnum = header[0][1].astext() 80 subs['bep'] = self.bepnum 80 81 if settings.no_random: 81 82 subs['banner'] = 0 -
dotorg/trunk/docutils/docutils/writers/bep_html/template.txt
r10489 r10490 4 4 <!-- 5 5 This HTML is auto-generated. DO NOT EDIT THIS FILE! If you are writing a new 6 BEP, see http://www. python.org/dev/beps/bep-0001for instructions and links6 BEP, see http://www.bittorrent.org/beps/bep_0001.html for instructions and links 7 7 to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! 8 8 --> … … 10 10 <meta http-equiv="Content-Type" content="text/html; charset=%(encoding)s" /> 11 11 <meta name="generator" content="Docutils %(version)s: http://docutils.sourceforge.net/" /> 12 <title>BEP %( pep)s -- %(title)s</title>12 <title>BEP %(bep)s -- %(title)s</title> 13 13 %(stylesheet)s 14 14 </head> … … 23 23 [<b><a href="%(bthome)s/">bittorrent.org</a></b>]--> 24 24 [<b><a href="%(bepindex)s/">BEP Index</a></b>] 25 [<b><a href="%(bephome)s/ pep-%(pepnum)s.txt">BEP Source</a></b>]25 [<b><a href="%(bephome)s/bep-%(bepnum)s.txt">BEP Source</a></b>] 26 26 </td></tr></table> 27 27 <div class="document">