♻️ Simplify internal docs script (#11777)

This commit is contained in:
gitworkflows authored and GitHub committed 2024-07-14 12:10:43 -05:00
1 parent 3a8f6cd1a2
commit 9d74b23670
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ def on_config(config: MkDocsConfig, **kwargs: Any) -> MkDocsConfig:
lang = dir_path.parent.name
if lang in available_langs:
config.theme["language"] = lang
if not (config.site_url or "").endswith(f"{lang}/") and not lang == "en":
if not (config.site_url or "").endswith(f"{lang}/") and lang != "en":
config.site_url = f"{config.site_url}{lang}/"
return config