mirror of
https://github.com/mvt-project/mvt.git
synced 2026-11-18 18:04:19 +01:00
Generate documentation copyright year at build time
This commit is contained in:
1 parent
df540d7c41
commit
d2e6f90809
2 files changed
+11
-1
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user