From 180cb05cf0402fac87a2eeb2a993b6f73374aec6 Mon Sep 17 00:00:00 2001 From: Avram Gottschlich Date: Wed, 11 Jan 2023 21:58:23 -0800 Subject: [PATCH] Add code to auto-refresh each HTML page This is a simple http-equiv attribute on a meta tag telling the browser to reload the page every 15 seconds. That should at least get the job done. Also add a link to the turbot documentation to the generated pages. --- html_generator.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/html_generator.py b/html_generator.py index 0fef3d4..f187032 100644 --- a/html_generator.py +++ b/html_generator.py @@ -145,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 = [] @@ -238,6 +240,7 @@ def round_overview(hunt, rnd, puzzles): ' \n', ' Mystery Hunt 2022\n', ' \n', + ' \n', ' \n', ' \n'.format(status), '

{}

\n'.format(rnd), @@ -322,6 +325,7 @@ def puzzle_overview(hunt, puzzle): '\n', ' \n', ' \n', + ' \n', ' \n', ' {}\n'.format(name+meta), '

{}

'.format(link(internal_link(hunt, 'index') + ".html", 'Hunt Overview')), @@ -371,13 +375,15 @@ def puzzle_lists(hunt, puzzles, filt): ' \n', ' Mystery Hunt 2022\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', '

{}

\n'.format('{} Puzzles').format(filt), '

{}

\n'.format(link(internal_link(hunt, 'index') + ".html", 'Hunt Overview')), -- 2.43.0