Skip to content

Commit

Permalink
♻️ Simplify internal docs script (#11777)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitworkflows authored Jul 14, 2024
1 parent 3a8f6cd commit 9d74b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mkdocs_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9d74b23

Please sign in to comment.