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