Show
Ignore:
Timestamp:
01/31/2008 02:47:16 AM (10 months ago)
Author:
dave
Message:

now rstbep2html.py works. Autoates beps.

Location:
dotorg/trunk/docutils/docutils/writers/bep_html
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dotorg/trunk/docutils/docutils/writers/bep_html/__init__.py

    r10489 r10490  
    99__docformat__ = 'reStructuredText' 
    1010 
     11bthome = "http://www.bittorrent.org" 
    1112 
    1213import sys 
     
    6768        settings = self.document.settings 
    6869        pyhome = settings.python_home 
    69         #subs['pyhome'] = pyhome 
     70        subs['pyhome'] = pyhome 
    7071        subs['bthome'] = bthome 
    7172        subs['bephome'] = settings.bep_home 
     
    7677        index = self.document.first_child_matching_class(nodes.field_list) 
    7778        header = self.document[index] 
    78         self.pepnum = header[0][1].astext() 
    79         subs['pep'] = self.pepnum 
     79        self.bepnum = header[0][1].astext() 
     80        subs['bep'] = self.bepnum 
    8081        if settings.no_random: 
    8182            subs['banner'] = 0 
  • dotorg/trunk/docutils/docutils/writers/bep_html/template.txt

    r10489 r10490  
    44<!-- 
    55This 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-0001 for instructions and links 
     6BEP, see http://www.bittorrent.org/beps/bep_0001.html for instructions and links 
    77to templates.  DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! 
    88--> 
     
    1010  <meta http-equiv="Content-Type" content="text/html; charset=%(encoding)s" /> 
    1111  <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> 
    1313  %(stylesheet)s 
    1414</head> 
     
    2323[<b><a href="%(bthome)s/">bittorrent.org</a></b>]--> 
    2424[<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>] 
    2626</td></tr></table> 
    2727<div class="document">