From: Fred Drake Date: Wed, 30 Oct 2002 21:32:40 +0000 (+0000) Subject: More support for generated pages. X-Git-Tag: v2.3c1~3637 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a4734927db2c23f2450d49a085c6143014e3bf9;p=thirdparty%2FPython%2Fcpython.git More support for generated pages. --- diff --git a/Doc/tools/mkmodindex b/Doc/tools/mkmodindex index 7d5c682022c2..8e869f9266be 100755 --- a/Doc/tools/mkmodindex +++ b/Doc/tools/mkmodindex @@ -29,6 +29,8 @@ import os import re import sys +from xml.sax.saxutils import quoteattr + import buildindex import support @@ -49,6 +51,21 @@ class IndexOptions(support.Options): program = os.path.basename(sys.argv[0]) print __doc__ % {"program": program} + links = [ + ('author', 'acks.html', 'Acknowledgements'), + ('help', 'about.html', 'About the Python Documentation'), + ] + + def get_header(self): + header = support.Options.get_header(self) + s = '' + for rel, href, title in self.links: + s += '' - % (self.uplink, self.uptitle)) + link = ('\n ' + '' + % (self.uplink, self.uptitle, + self.uplink, self.uptitle)) else: - link = '' % self.uplink + link = ('\n ' + '' + % (self.uplink, self.uplink)) repl = " %s\n" % link s = s.replace("", repl, 1) if self.aesop_type: