Автообновление года в Copyright :)
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 30s
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 30s
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
site/
|
site/
|
||||||
.obsidian/
|
.obsidian/
|
||||||
|
*.pyc
|
||||||
6
hooks.py
Normal file
6
hooks.py
Normal 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)
|
||||||
10
mkdocs.yml
10
mkdocs.yml
@@ -1,9 +1,11 @@
|
|||||||
site_name: Tish Knowledge Base
|
site_name: Tish Knowledge Base
|
||||||
site_url: https://kb.tishenko.dev
|
site_url: https://kb.tishenko.dev
|
||||||
copyright: Copyright © 2025
|
copyright: Copyright © {year}
|
||||||
repo_url: https://github.com/Arity-T/knowledge-base
|
repo_url: https://github.com/Arity-T/knowledge-base
|
||||||
repo_name: Arity-T/knowledge-base
|
repo_name: Arity-T/knowledge-base
|
||||||
edit_uri: edit/main/docs/
|
edit_uri: edit/main/docs/
|
||||||
|
hooks:
|
||||||
|
- hooks.py
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
language: ru
|
language: ru
|
||||||
@@ -12,7 +14,7 @@ theme:
|
|||||||
|
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github
|
repo: fontawesome/brands/github
|
||||||
|
|
||||||
features:
|
features:
|
||||||
- navigation.indexes
|
- navigation.indexes
|
||||||
- navigation.instant
|
- navigation.instant
|
||||||
@@ -39,7 +41,7 @@ theme:
|
|||||||
extra:
|
extra:
|
||||||
# generator: false
|
# generator: false
|
||||||
social:
|
social:
|
||||||
- icon: fontawesome/brands/github
|
- icon: fontawesome/brands/github
|
||||||
link: https://github.com/Arity-T
|
link: https://github.com/Arity-T
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
@@ -69,4 +71,4 @@ extra_css:
|
|||||||
- stylesheets/extra.css
|
- stylesheets/extra.css
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- glightbox
|
- glightbox
|
||||||
|
|||||||
Reference in New Issue
Block a user