mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-05 07:34:12 -04:00
🐛 Fix overriding MKDocs theme lang in hook (#10490)
This commit is contained in:
committed by
GitHub
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user