mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-19 08:31:35 -04:00
♻️ Simplify internal docs script (#11777)
This commit is contained in:
1 parent
3a8f6cd1a2
commit
9d74b23670
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user