mirror of https://github.com/tiangolo/fastapi.git
🐛 Fix overriding MKDocs theme lang in hook (#10490)
This commit is contained in:
parent
ab65486e75
commit
9bfbacfe98
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue