Browse Source

Move `translation-banner.md` inside `docs` directory

pull/14809/head
Yurii Motov 5 months ago
parent
commit
af3bf874c1
  1. 0
      docs/en/docs/translation-banner.md
  2. 0
      docs/ru/docs/translation-banner.md
  3. 4
      scripts/mkdocs_hooks.py

0
docs/en/translation-banner.md → docs/en/docs/translation-banner.md

0
docs/ru/translation-banner.md → docs/ru/docs/translation-banner.md

4
scripts/mkdocs_hooks.py

@ -29,10 +29,10 @@ def get_missing_translation_content(docs_dir: str) -> str:
@lru_cache @lru_cache
def get_translation_banner_content(docs_dir: str) -> str: def get_translation_banner_content(docs_dir: str) -> str:
docs_dir_path = Path(docs_dir) 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(): if not translation_banner_path.is_file():
translation_banner_path = ( 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") return translation_banner_path.read_text(encoding="utf-8")

Loading…
Cancel
Save