def index_help(): repo = Repo() last_commit = repo.head.commit commit_history = "{} ({})".format(last_commit.message, ctime(last_commit.committed_date)) return md_page("home", "common", build_toc=False, commit_history=commit_history, up_to_date_msg=False, last_restart=START_TIME)
def open_monster_sheet(name): try: return md_page(name, "dnd", "monster", build_toc=False) except HTTPError: # If we can't find a template or MD file, check for a TOML file itself and just load the monster-sheet toml_path = pjoin("dnd/monster", title_to_page_name(name) + ".toml") if not isfile(pjoin("data", toml_path)): raise HTTPError(404, f"Can't find a page for \"/dnd/monster/{name}\"") toml_dict = toml.load(pjoin("data", toml_path)) if "redirect" in toml_dict: return redirect(toml_dict["redirect"]) md_text = MD.parse_md(INCLUDE_MD.format(toml_path), namespace="dnd") return template("common/page.tpl", { "title": toml_dict["name"], "text": md_text })
def calendar(): return md_page("calendar", "curse_of_strahd", build_toc=False)
def page(name): return md_page(name, "waterdeep")
def gm_notes(name): return md_page(name, "pirates", directory="gm_notes")
def home(): return md_page("Here There Be Pirates!", "pirates")
def gm_notes(name): return md_page(name, "dragon_heist", directory="gm_notes")
def home(): return md_page("Dragon Heist", "dragon_heist")
def equipment(name): return md_page(name, "dnd", "equipment")
def dnd_class(name): return md_page(name, "dnd", "class")
def background(name): return md_page(name, "dnd", "background")
def advancement(name): return md_page(name, "dnd", "advancement")
def home(): return md_page("5e Wiki", "dnd", build_toc=False)
def calendar(): return md_page("calendar", "waterdeep", build_toc=False)
def gm_notes(name): return md_page(name, "waterdeep", directory="gm_notes")
def home(): return md_page("Numenera Home", "numenera", build_toc=False)
def page(name): return md_page(name, "numenera")
def general(name): return md_page(name, "dnd", "general")
def page(name): return md_page(name, "dragon_heist")
def race(name): return md_page(name, "dnd", "race")
def calendar(): return md_page("calendar", "dragon_heist", build_toc=False)
def subclass(name): return md_page(name, "dnd", "subclass")
def page(name): return md_page(name, "pirates")
def gm_notes(name): return md_page(name, "curse_of_strahd", directory="gm_notes")
def player_soundboard(): return md_page("Player Soundboard", "common", build_toc=False)
def home(): return md_page("Curse of Strahd", "curse_of_strahd")
def page(name): return md_page(name, "curse_of_strahd")
def home(): return md_page("Waterdeep Adventures", "waterdeep")