🐛 Fix overriding MKDocs theme lang in hook (#10490)

This commit is contained in:
Sebastián Ramírez 2023-10-21 11:10:18 +04:00 committed by GitHub
parent ab65486e75
commit 9bfbacfe98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def get_missing_translation_content(docs_dir: str) -> str:
@lru_cache()
def get_mkdocs_material_langs() -> List[str]:
material_path = Path(material.__file__).parent
material_langs_path = material_path / "partials" / "languages"
material_langs_path = material_path / "templates" / "partials" / "languages"
langs = [file.stem for file in material_langs_path.glob("*.html")]
return langs