Автообновление года в Copyright :)
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-02-13 11:16:21 +03:00
parent bd620e77eb
commit 035bae4fca
3 changed files with 14 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
site/
.obsidian/
*.pyc

6
hooks.py Normal file
View File

@@ -0,0 +1,6 @@
# https://github.com/squidfunk/mkdocs-material/discussions/4969#discussioncomment-7290363
from datetime import datetime
def on_config(config, **kwargs):
config.copyright = config.copyright.format(year=datetime.now().year)

View File

@@ -1,9 +1,11 @@
site_name: Tish Knowledge Base
site_url: https://kb.tishenko.dev
copyright: Copyright © 2025
copyright: Copyright © {year}
repo_url: https://github.com/Arity-T/knowledge-base
repo_name: Arity-T/knowledge-base
edit_uri: edit/main/docs/
hooks:
- hooks.py
theme:
name: material
language: ru