From: Michael Tremer Date: Sat, 1 Jul 2023 10:18:07 +0000 (+0000) Subject: docs: Move 404 template X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6afd9c3945ac1f83861b51e7cfbcf847c9a5375;p=ipfire.org.git docs: Move 404 template Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index aeadb2a7..dd0104f5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -198,6 +198,7 @@ templates_donate_messages_DATA = \ templates_donate_messagesdir = $(templates_donatedir)/messages templates_docs_DATA = \ + src/templates/docs/404.html \ src/templates/docs/base.html \ src/templates/docs/confirm-restore.html \ src/templates/docs/diff.html \ @@ -342,7 +343,6 @@ templates_voip_modules_DATA = \ templates_voip_modulesdir = $(templates_voipdir)/modules templates_wiki_DATA = \ - src/templates/wiki/404.html \ src/templates/wiki/confirm-delete.html \ src/templates/wiki/edit.html \ src/templates/wiki/recent-changes.html \ diff --git a/src/templates/wiki/404.html b/src/templates/docs/404.html similarity index 100% rename from src/templates/wiki/404.html rename to src/templates/docs/404.html diff --git a/src/web/docs.py b/src/web/docs.py index 91a098ce..eaac0dc6 100644 --- a/src/web/docs.py +++ b/src/web/docs.py @@ -14,7 +14,7 @@ class PageHandler(base.BaseHandler): def write_error(self, status_code, **kwargs): # Render a custom page for 404 if status_code == 404: - self.render("wiki/404.html", **kwargs) + self.render("docs/404.html", **kwargs) return # Otherwise raise this to one layer above