Generate documentation copyright year at build time

This commit is contained in:
besendorf committed 2026-10-28 09:47:28 +01:00
1 parent df540d7c41
commit d2e6f90809
2 files changed
+11 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
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
+2 -1
View File
@@ -1,7 +1,8 @@
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:
- hooks/copyright.py
site_description: Mobile Verification Toolkit Documentation
not_in_nav: |
android/adb.md