From af3bf874c16541d4e7c978c6a134ac9ac41c37c0 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Wed, 4 Feb 2026 13:18:30 +0100 Subject: [PATCH] Move `translation-banner.md` inside `docs` directory --- docs/en/{ => docs}/translation-banner.md | 0 docs/ru/{ => docs}/translation-banner.md | 0 scripts/mkdocs_hooks.py | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename docs/en/{ => docs}/translation-banner.md (100%) rename docs/ru/{ => docs}/translation-banner.md (100%) diff --git a/docs/en/translation-banner.md b/docs/en/docs/translation-banner.md similarity index 100% rename from docs/en/translation-banner.md rename to docs/en/docs/translation-banner.md diff --git a/docs/ru/translation-banner.md b/docs/ru/docs/translation-banner.md similarity index 100% rename from docs/ru/translation-banner.md rename to docs/ru/docs/translation-banner.md diff --git a/scripts/mkdocs_hooks.py b/scripts/mkdocs_hooks.py index 64f6b038f..567c0111d 100644 --- a/scripts/mkdocs_hooks.py +++ b/scripts/mkdocs_hooks.py @@ -29,10 +29,10 @@ def get_missing_translation_content(docs_dir: str) -> str: @lru_cache def get_translation_banner_content(docs_dir: str) -> str: docs_dir_path = Path(docs_dir) - translation_banner_path = docs_dir_path.parent / "translation-banner.md" + translation_banner_path = docs_dir_path / "translation-banner.md" if not translation_banner_path.is_file(): translation_banner_path = ( - docs_dir_path.parent.parent / "en" / "translation-banner.md" + docs_dir_path.parent.parent / "en" / "docs" / "translation-banner.md" ) return translation_banner_path.read_text(encoding="utf-8")