buldthensnip/msrc/index.py
Ben Russell (300178622) ddb0ac5f5d more manual stuff
2013-01-09 12:23:56 +13:00

48 lines
1.4 KiB
Python

TITLE = ICEBALL_W_VER + " Manual"
SECTIONS = [
("Contents", "", [
("Changelog", "main/changelog", None),
("Credits", "main/credits", None),
("Licences", "main/lic", None),
("Important Tutorials", "tut/", [
(m_b(m_i("READ THIS FIRST")), "rtfm", None),
("Command line tutorial", "cmd", None),
("JSON tutorial", "json", None),
("Compiling the engine", "compile", None),
("How to play", "play", None),
]),
("Users' Guide", "setup/", [
("What goes where", "where", None),
("Engine config (clsave/config.json)", "config", None),
("User config (clsave/pub/user.json)", "user", None),
("Controls (clsave/pub/controls.json)", "controls", None),
("Command line arguments", "args", None),
]),
("Utilities", "util/", [
("mapedit", "mapedit", None),
("pmfedit", "pmfedit", None),
]),
("Modding The Game", "mods/", [
("Coding conventions", "conv", None),
("Base game API", "basegame", None),
("Lua API reference", "lua", None),
("Networking protocol", "network", None),
]),
("File Formats", "fmt/", [
("[vxl] Ace of Spades Map", "vxl", None),
("[icemap] IceMap", "icemap", None),
("[tga] Targa Image", "tga", None),
("[pmf] Point Model Format", "pmf", None),
("[json] JavaScript-Oriented Notation", "json", None),
("[wav] Wave Audio", "wav", None),
]),
])
]
BODY = m_html(m_head(m_title(TITLE)), m_body(*([
m_h1(TITLE),
m_hr()] +
gen_list(SECTIONS, level=2)
)))