From 69ca8f924191441a382b46a446457c8df2a62ebc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 12 Jan 2022 00:42:03 -0800 Subject: [PATCH] Expect all dependencies to be found from / Specifically, the .css and .js files needed by the files being generated here. By expecting these from '/' we can serve them statically from that single location, even if all of the files we generate end up at some lower-level directory (such as when we soon isolate the web pages for each hunt from each other). --- html_generator.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/html_generator.py b/html_generator.py index c16f033..0950d6f 100644 --- a/html_generator.py +++ b/html_generator.py @@ -131,7 +131,7 @@ def overview(puzzles, rounds): ' \n', ' \n', '\n', - ' \n', + ' \n', ' \n', '\n', ' Hunt Overview\n', - ' \n' + ' \n' '\n', '
\n' ' Hunt Overview' @@ -219,9 +219,9 @@ def round_overview(rnd, puzzles): status = 'unsolved' start = ['\n', ' \n', - ' \n', + ' \n', ' Mystery Hunt 2022\n', - ' \n', + ' \n', ' \n', ' \n'.format(status), '

{}

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

{}

'.format(link(website + 'index.html', 'Hunt Overview')), '\n', @@ -349,9 +349,9 @@ def puzzle_lists(puzzles, filt): unsolved_puzzles = [puzzle for puzzle in puzzles if puzzle['status'] != 'solved'] start = ['\n', ' \n', - ' \n', + ' \n', ' Mystery Hunt 2022\n', - ' \n', + ' \n', ' \n', '
\n' ' Hunt Overview' -- 2.43.0