diff --git a/docs/plugins/supybot.css b/docs/plugins/supybot.css index 814ee5bb4..e42698f61 100644 --- a/docs/plugins/supybot.css +++ b/docs/plugins/supybot.css @@ -36,3 +36,6 @@ pre { .trodd { background:white; } +.underline { + text-decoration:underline; +} diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py index 69deb9b2e..4d60d52e6 100755 --- a/tools/generate-plugin-documentation.py +++ b/tools/generate-plugin-documentation.py @@ -48,6 +48,7 @@ import debug import callbacks commandDict = {} +firstChars = {} def prepIndex(): directory = os.path.join('docs', 'plugins') @@ -70,6 +71,7 @@ def prepIndex(): def makePluginDocumentation(pluginWindow): global commandDict + global firstChars trClasses = { 'treven':'trodd', 'trodd':'treven' } trClass = 'treven' (pluginName, module, plugin) = pluginWindow[1] @@ -108,6 +110,8 @@ def makePluginDocumentation(pluginWindow): commandDict[attr].append(pluginName) else: commandDict[attr] = [pluginName] + if attr[0] not in firstChars: + firstChars[attr[0]] = '' method = getattr(plugin, attr) if hasattr(method, '__doc__'): doclines = method.__doc__.splitlines() @@ -121,9 +125,9 @@ def makePluginDocumentation(pluginWindow): morehelp = cgi.escape(morehelp) trClass = trClasses[trClass] fd.write(textwrap.dedent(""" -