X-Git-Url: https://git.cworth.org/git?p=turbot-web;a=blobdiff_plain;f=html_generator.py;h=0fef3d421c3f1b9158a7e97932f07b43342b24a6;hp=7227eae30f754c8ca3914fce6257e2890f85eeb4;hb=HEAD;hpb=c143928ee9e6b76d710a210690077337f3f19e7c diff --git a/html_generator.py b/html_generator.py index 7227eae..f187032 100644 --- a/html_generator.py +++ b/html_generator.py @@ -30,6 +30,12 @@ def hunt_file(hunt, name): return "{}/{}/{}".format(WEBROOT, hunt['channel_id'], name) +def internal_link(hunt, name): + """Returns a path for a link on this site.""" + + # Just generate a relative link, (which is just the name itself) + return "{}".format(name) + def filename_from_name(name): """Returns a string derived from name, but with all spaces and slashes replaced with underscores, (for making a clean filename)""" @@ -139,6 +145,7 @@ def overview(hunt, puzzles, rounds): '\n', ' \n', ' \n', + ' \n', '\n', ' \n', ' \n' '\n', - '
\n' - ' Hunt Overview' - ' All Puzzles\n' - ' Unsolved\n' - ' Solved\n' - '
\n' + '
\n', + ' Hunt Overview', + ' All Puzzles\n', + ' Unsolved\n', + ' Solved\n', + ' Turbot Docs\n' + '
\n', '\n',] columns = ['
\n'] expanding = [] @@ -181,7 +189,7 @@ def overview(hunt, puzzles, rounds): expanding += [ '