diff --git a/.gitignore b/.gitignore index 0b7679b5..b1c1b3a1 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ venv.bak/ # mkdocs documentation /site + +# temp files +__pycache__ diff --git a/docs/assets/hooks/footer_hooks.py b/docs/assets/hooks/footer_hooks.py new file mode 100644 index 00000000..dacd4924 --- /dev/null +++ b/docs/assets/hooks/footer_hooks.py @@ -0,0 +1,5 @@ +from datetime import datetime + +def on_config(config, **kwargs): + config.copyright = f"Copyright © 2024 - {datetime.now().year} PyGreece" + return config diff --git a/mkdocs.yml b/mkdocs.yml index b49f8710..5a8b7da0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,7 @@ site_name: PyGreece repo_url: https://github.com/pygreece/community -copyright: Copyright © 2024 - PyGreece +# copyright: Copyright © 2024 - PyGreece +# copyright is set through docs/assets/hooks/footer_hooks.py theme: name: material @@ -47,6 +48,8 @@ plugins: enable_creation_date: true - search +hooks: + - docs/assets/hooks/footer_hooks.py markdown_extensions: - admonition