From: Sebastián Ramírez Date: Sat, 21 Oct 2023 07:10:18 +0000 (+0400) Subject: 🐛 Fix overriding MKDocs theme lang in hook (#10490) X-Git-Tag: 0.104.1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bfbacfe98c877ba661e0e40c8dcac7571de819a;p=thirdparty%2Ffastapi%2Ffastapi.git 🐛 Fix overriding MKDocs theme lang in hook (#10490) --- diff --git a/scripts/mkdocs_hooks.py b/scripts/mkdocs_hooks.py index b12487b50f..2b6a056420 100644 --- a/scripts/mkdocs_hooks.py +++ b/scripts/mkdocs_hooks.py @@ -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