diff --git a/docs/plugins/supybot.css b/docs/plugins/supybot.css deleted file mode 100644 index e42698f61..000000000 --- a/docs/plugins/supybot.css +++ /dev/null @@ -1,41 +0,0 @@ -body { - background:white; -} - -table { - border: 2px solid lightsteelblue; - border-collapse: collapse; -} - -tr#headers { - text-align:left; - font-weight:bold; -} - -td { - padding: 0px 3px 0px 3px; - border: 1px solid lightsteelblue; - white-space: nowrap; -} - -pre { - border:1px solid lightsteelblue; - border-bottom:3px solid lightsteelblue; - padding:3px; - background:floralwhite; -} - -.detail { - white-space:normal; -} - -.treven { - background:aliceblue; -} - -.trodd { - background:white; -} -.underline { - text-decoration:underline; -} diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py index 4d60d52e6..07d6908be 100755 --- a/tools/generate-plugin-documentation.py +++ b/tools/generate-plugin-documentation.py @@ -50,61 +50,88 @@ import callbacks commandDict = {} firstChars = {} -def prepIndex(): - directory = os.path.join('docs', 'plugins') - if not os.path.exists(directory): - os.mkdir(directory) - fd = file(os.path.join(directory, 'index.html'), 'w') - fd.write(textwrap.dedent(""" +def genHeader(title, meta=''): + return """
-Command | Args | Detailed Help |