Loading tools/pre_process.py +4 −0 Original line number Diff line number Diff line Loading @@ -17,9 +17,13 @@ def process_edition(year, community): if known_year == year: index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "<!--") index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "-->") index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "") index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "") else: index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "") index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "") index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "<!--") index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "-->") with open(os.path.join(sys.argv[2], "index.html"), "w") as f: f.write(index) Loading web/index_template.html +7 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,13 @@ <a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a> </div> </aside>{2025ONLYCOMMENTEND} {NOT2025ONLYCOMMENTSTART}<aside class="container-fluid alert-primary collapse" id="headerNotice"> <div class="d-flex w-100 py-2 align-items-center"> <i class="bi bi-info-circle-fill fs-5"></i> <p class="mb-0 flex-grow-1 px-2">The 2025 atlas is now ready for placing, this year with the ability to view the canvas at different time.</p> <a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a> </div> </aside>{NOT2025ONLYCOMMENTEND} <nav id="main-navbar" class="navbar navbar-expand-lg bg-body border-bottom"> <div class="container-fluid"> <a class="navbar-brand text-body d-flex align-items-center" href="./"> Loading Loading
tools/pre_process.py +4 −0 Original line number Diff line number Diff line Loading @@ -17,9 +17,13 @@ def process_edition(year, community): if known_year == year: index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "<!--") index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "-->") index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "") index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "") else: index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "") index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "") index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "<!--") index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "-->") with open(os.path.join(sys.argv[2], "index.html"), "w") as f: f.write(index) Loading
web/index_template.html +7 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,13 @@ <a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a> </div> </aside>{2025ONLYCOMMENTEND} {NOT2025ONLYCOMMENTSTART}<aside class="container-fluid alert-primary collapse" id="headerNotice"> <div class="d-flex w-100 py-2 align-items-center"> <i class="bi bi-info-circle-fill fs-5"></i> <p class="mb-0 flex-grow-1 px-2">The 2025 atlas is now ready for placing, this year with the ability to view the canvas at different time.</p> <a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a> </div> </aside>{NOT2025ONLYCOMMENTEND} <nav id="main-navbar" class="navbar navbar-expand-lg bg-body border-bottom"> <div class="container-fluid"> <a class="navbar-brand text-body d-flex align-items-center" href="./"> Loading