added more css identifiers to html generator output

updated "minetest_mod_html_generator.py" to include an id for the Table
of Contents header and the List of mods header, and also added the class
"mod" to the heading for each individual mod
master
rocketslime11 2014-06-16 21:08:37 -04:00
parent 9a920565e4
commit d5780cc1dd
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ def writeHTML():
html_code.append("<html><title>List of Mods</title><link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" /><body><div id=\"holder\">")
#Outputs Table of Contents
html_code.append("<h2>Table of Contents</h2>")
html_code.append("<h2 id=\"TOC\">Table of Contents</h2>")
html_code.append("<ul>")
for modName, mod in sorted(master_dict.items()):
@ -41,11 +41,11 @@ def writeHTML():
html_code.append("</ul>")
#Ouputs list header
html_code.append("<h2>List of Mods</h2>")
html_code.append("<h2 id=\"Mod List Header\">List of Mods</h2>")
#Prints info for each mod in alphabetical order
for modName, mod in sorted(master_dict.items()):
html_code.append("<h3 id=\"" + mod["Name"] + "\">" + mod["Name"] + " [" + mod["Folder"] + "]</h3>")
html_code.append("<h3 class=\"mod\" id=\"" + mod["Name"] + "\">" + mod["Name"] + " [" + mod["Folder"] + "]</h3>")
html_code.append("<ul>")
html_code.append("<li>" + "Folder Name: " + mod["Folder"] + "</li>")
html_code.append("<li>" + "Author: " + mod["Author"] + "</li>")