Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs_overrides/hooks/year.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from datetime import datetime
def on_config(config, **kwargs):
year: str = str(datetime.now().year)
config.copyright = config.copyright.format(year=year)
7 changes: 5 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ edit_uri: blob/main/docs/
extra_css:
- assets/css/extra.css

hooks:
- docs_overrides/hooks/year.py

theme:
language: en
name: material
Expand Down Expand Up @@ -106,9 +109,9 @@ extra:
repo_issue: https://github.com/silverhack/monkey365/issues
repo_discussion: https://github.com/silverhack/monkey365/discussions

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

markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.superfences