🐛 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

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