File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ edit_uri: blob/main/docs/
99extra_css :
1010- assets/css/extra.css
1111
12+ hooks :
13+ - docs_overrides/hooks/year.py
14+
1215theme :
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 © 2023 <a href="https://twitter.com/tr1ana" target="blank">Juan Garrido</a>
112+ copyright : Copyright © {year} <a href="https://twitter.com/tr1ana" target="blank">Juan Garrido</a>
110113
111114markdown_extensions :
112115 - admonition
You can’t perform that action at this time.
0 commit comments