From 035bae4fcabda72c8a7711e10372868f6750298b Mon Sep 17 00:00:00 2001 From: Arity-T Date: Fri, 13 Feb 2026 11:16:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B3=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=20=D0=B2=20Copyright=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- hooks.py | 6 ++++++ mkdocs.yml | 10 ++++++---- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 hooks.py diff --git a/.gitignore b/.gitignore index 565aa95..51ecf4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ site/ -.obsidian/ \ No newline at end of file +.obsidian/ +*.pyc \ No newline at end of file diff --git a/hooks.py b/hooks.py new file mode 100644 index 0000000..21aedb0 --- /dev/null +++ b/hooks.py @@ -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) diff --git a/mkdocs.yml b/mkdocs.yml index 4c418e5..7c64b72 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 @@ -12,7 +14,7 @@ theme: icon: repo: fontawesome/brands/github - + features: - navigation.indexes - navigation.instant @@ -39,7 +41,7 @@ theme: extra: # generator: false social: - - icon: fontawesome/brands/github + - icon: fontawesome/brands/github link: https://github.com/Arity-T markdown_extensions: @@ -69,4 +71,4 @@ extra_css: - stylesheets/extra.css plugins: - - glightbox \ No newline at end of file + - glightbox