From 351779fb2ae6e88d27e7f2aba7ed31eaeedcecc9 Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Fri, 29 Nov 2024 18:12:38 -0500 Subject: [PATCH] Rename survival guide html --- site/guide.js | 2 +- site/{survival_guides.html => survival_guide.html} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename site/{survival_guides.html => survival_guide.html} (100%) diff --git a/site/guide.js b/site/guide.js index c38c07ae8..15a368f6c 100644 --- a/site/guide.js +++ b/site/guide.js @@ -24,7 +24,7 @@ function loadGuide(guide) { return fetch(`${baseUrl}/guide_${guide}.md`) .then(response => response.text()) .then(text => { - let html = toHTML(`# ${title}${guide === "tool_survival_guide" ? "\n[View survival guide online](survival_guides)\n" : ""}\n${text}`); + let html = toHTML(`# ${title}${guide === "tool_survival_guide" ? "\n[View survival guide online](survival_guide)\n" : ""}\n${text}`); // Shift all the headers down by one h1 -> h2, h2 -> h3, etc. html = html.replace(/(.*)<\/h(\d)>/gm, (match, p1, p2, p3) => `${p2}`); // Resolve all images diff --git a/site/survival_guides.html b/site/survival_guide.html similarity index 100% rename from site/survival_guides.html rename to site/survival_guide.html