Skip to content

Commit de46782

Browse files
committed
Merge branch 'patch9'
PR approved
2 parents db39d1c + 4f1c943 commit de46782

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs_overrides/hooks/year.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from datetime import datetime
2+
def on_config(config, **kwargs):
3+
year: str = str(datetime.now().year)
4+
config.copyright = config.copyright.format(year=year)

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ edit_uri: blob/main/docs/
99
extra_css:
1010
- assets/css/extra.css
1111

12+
hooks:
13+
- docs_overrides/hooks/year.py
14+
1215
theme:
1316
language: en
1417
name: material
@@ -106,7 +109,7 @@ extra:
106109
repo_issue: https://github.com/silverhack/monkey365/issues
107110
repo_discussion: https://github.com/silverhack/monkey365/discussions
108111

109-
copyright: Copyright &copy; 2023 <a href="https://twitter.com/tr1ana" target="blank">Juan Garrido</a>
112+
copyright: Copyright &copy; {year} <a href="https://twitter.com/tr1ana" target="blank">Juan Garrido</a>
110113

111114
markdown_extensions:
112115
- admonition

0 commit comments

Comments
 (0)