diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py
index d861cdb11..87d66ba89 100755
--- a/tools/generate-plugin-documentation.py
+++ b/tools/generate-plugin-documentation.py
@@ -64,6 +64,29 @@ def genHeader(title, meta=''):
''' % (title, meta)
+def genNavbar(path):
+ download = 'http://sourceforge.net/project/showfiles.php?group_id=58965'
+ bug = 'http://sourceforge.net/tracker/?func=add&group_id=58965&'\
+ 'atid=489447'
+ return '''
+
+ ''' % (path, download, bug)
+
def genFooter():
return '''
@@ -92,9 +115,9 @@ def prepIndex():
fd.write(textwrap.dedent('''
%s
Supybot Plugin Documentation Index
-
+ %s
- ''' % genHeader('Supybot Plugin Documentation')))
+ ''' % (genHeader('Supybot Plugin Documentation'), genNavbar('../'))))
fd.close()
def makePluginDocumentation(pluginWindow):
@@ -128,10 +151,14 @@ def makePluginDocumentation(pluginWindow):
''' % (next, prev)
fd.write(textwrap.dedent('''
%s
-
%s
+ %s
+ %s
+
- ''' % (genHeader(title, meta), cgi.escape(module.__doc__ or ""))))
+ ''' % (genHeader(title, meta),
+ cgi.escape(module.__doc__ or ""),
+ genNavbar('../../'))))
attrs = [x for x in dir(plugin) if plugin.isCommand(x) and not
x.startswith('_')]
id.write('(%s)
\n' % ', '.join(attrs))
@@ -165,7 +192,6 @@ def makePluginDocumentation(pluginWindow):
<- %s |
Plugin Index |
- Home |
Command Index |
%s ->
%s
@@ -192,9 +218,10 @@ def makeCommandsIndex():
title = 'Supybot Commands Index'
fd.write(textwrap.dedent('''
%s
- %s
+ %s
+ %s
- ''' % (genHeader(title), title)))
+ ''' % (genHeader(title), title, genNavbar('../'))))
commands = [c for c in commandDict.iterkeys()]
commands.sort()
for i in ascii_lowercase: