Merge pull request #985 from besendorf/docs/dynamic-copyright-year

Generate documentation copyright year at build time
This commit is contained in:
besendorf authored and GitHub committed 2026-11-18 10:12:33 +01:00
commit 4643a9cfac
2 files changed
+11 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
from datetime import datetime, timezone
def on_config(config, **kwargs):
year = datetime.now(timezone.utc).year
config["copyright"] = f"Copyright © 2021-{year} MVT Project Developers"
return config
+4 -1
View File
@@ -1,7 +1,10 @@
site_name: Mobile Verification Toolkit
repo_url: https://github.com/mvt-project/mvt
edit_uri: edit/main/docs/
copyright: Copyright © 2021-2023 MVT Project Developers
hooks:
- docs/hooks/copyright.py
exclude_docs: |
/hooks/
site_description: Mobile Verification Toolkit Documentation
not_in_nav: |
android/adb.md