mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-30 20:36:51 +02:00
Cleaned up commands.html a little bit using some suggestions from ddipaolo
This commit is contained in:
parent
f57f57c5be
commit
7cd2844079
@ -178,11 +178,19 @@ def makeCommandsIndex():
|
|||||||
<link rel="stylesheet" type="text/css" href="supybot.css">
|
<link rel="stylesheet" type="text/css" href="supybot.css">
|
||||||
<body><div>
|
<body><div>
|
||||||
<h2>Supybot Commands Index</h2>
|
<h2>Supybot Commands Index</h2>
|
||||||
<strong>Command</strong> (Plugins)<br><br>
|
<strong>Command</strong> (Plugins)<br>
|
||||||
"""))
|
"""))
|
||||||
commands = [c for c in commandDict.iterkeys()]
|
commands = [c for c in commandDict.iterkeys()]
|
||||||
commands.sort()
|
commands.sort()
|
||||||
|
alphas = []
|
||||||
for command in commands:
|
for command in commands:
|
||||||
|
char = command[0]
|
||||||
|
if char in alphas:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
alphas.append(char)
|
||||||
|
fd.write('<h2 id="%s" style="text-decoration:underline">%s'\
|
||||||
|
'</h2>\n' % (char, char.capitalize()))
|
||||||
plugins = commandDict[command]
|
plugins = commandDict[command]
|
||||||
plugins.sort()
|
plugins.sort()
|
||||||
fd.write('<strong>%s</strong> (%s)<br>\n' % (command,
|
fd.write('<strong>%s</strong> (%s)<br>\n' % (command,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user