From 7829b91c49cffcb5bdc79d78131d5770dc2a0d65 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Thu, 26 Jun 2025 14:42:05 +0200 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20don=E2=80=98t=20cache=20page=20build?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/build.py b/src/build.py index dd5b144..fa62b01 100644 --- a/src/build.py +++ b/src/build.py @@ -27,7 +27,6 @@ class Build: self.__build_question_slide = memory.cache(self.__build_question_slide) self.__build_chapter = memory.cache(self.__build_chapter) self.__build_section = memory.cache(self.__build_section) - self.__build_page = memory.cache(self.__build_page) self.__build_chapter_slidedeck = memory.cache(self.__build_chapter_slidedeck) def __parse_katalog(self): @@ -259,6 +258,7 @@ class Build: self.__build_section(edition, edition_name, section, i, chapter, next_section, next_chapter) def build_assets(self): + self.config.p_build.mkdir(exist_ok=True) shutil.copytree(self.config.p_assets, self.config.p_build_assets, dirs_exist_ok=True) def __parse_snippets(self): @@ -307,6 +307,8 @@ class Build: file.write(result) def build_website(self): + self.config.p_build.mkdir(exist_ok=True) + snippets = self.__parse_snippets() contents = self.__parse_contents() self.__build_index(snippets) From 4c4edc35736c57579353e2c626b73db59b2a14e5 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Thu, 26 Jun 2025 14:42:16 +0200 Subject: [PATCH 2/6] feat: improve page footer --- templates/html/page.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/html/page.html b/templates/html/page.html index 8c73b10..67e4b8f 100644 --- a/templates/html/page.html +++ b/templates/html/page.html @@ -120,11 +120,16 @@ {% endif %}