From caa7e3292a33038c85cfd49de5646bcc2aab10bb Mon Sep 17 00:00:00 2001 From: Charles SENGES Date: Thu, 5 Dec 2024 18:40:34 +0100 Subject: [PATCH] feat: add page header to explicit page was generated automatically. --- pyproject.toml | 4 ++-- tovald/assets/.gitkeep | 0 tovald/assets/templates/header.tpl | 4 ++++ tovald/conf.py | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 tovald/assets/.gitkeep create mode 100644 tovald/assets/templates/header.tpl diff --git a/pyproject.toml b/pyproject.toml index 779921a..42089bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,8 +55,8 @@ license-files = [] [tool.setuptools.package-data] tovald = [ - "static/*", "static/.*", - "assets/*", "assets/.*", + "static/*", + "assets/templates/*.tpl", ] [tool.uv] diff --git a/tovald/assets/.gitkeep b/tovald/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tovald/assets/templates/header.tpl b/tovald/assets/templates/header.tpl new file mode 100644 index 0000000..f07bce7 --- /dev/null +++ b/tovald/assets/templates/header.tpl @@ -0,0 +1,4 @@ +
+ This page was generated automatically. +
+
diff --git a/tovald/conf.py b/tovald/conf.py index 5d7ef89..2af010d 100644 --- a/tovald/conf.py +++ b/tovald/conf.py @@ -17,3 +17,5 @@ confluence_space_key = os.environ.get("CONFLUENCE_SPACE_KEY") confluence_parent_page = os.environ.get("CONFLUENCE_PARENT_PAGE") confluence_publish_token = os.environ.get("CONFLUENCE_PAT") + +confluence_header_file = "assets/templates/header.tpl"