From 181206baaa936c02b1898fd8e22285cd1e9472b9 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 5 Nov 2024 04:53:05 +0100 Subject: [PATCH] Remove canonical/hreflang tags, let RTD I18N do it --- _templates/layout.html | 10 ---------- conf.py | 4 ---- 2 files changed, 14 deletions(-) diff --git a/_templates/layout.html b/_templates/layout.html index 2afebc334..c893bfc88 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -13,16 +13,6 @@ {% block linktags -%} - {% if godot_inject_language_links -%} - {% for alternate_lang in godot_docs_supported_languages -%} - {# Convert to ISO 639-1 format, e.g. zh_CN -> zh-cn -#} - {% set alternate_lang_href = alternate_lang.lower().replace("_", "-") -%} - - {% endfor -%} - - - - {% endif -%} {{ super() }} {% endblock -%} diff --git a/conf.py b/conf.py index d3e7c8c44..a3f6026dc 100644 --- a/conf.py +++ b/conf.py @@ -181,13 +181,9 @@ html_context = { "github_repo": "godot-docs", # Repo name "github_version": "master", # Version "conf_py_path": "/", # Path in the checkout to the docs root - "godot_inject_language_links": True, - "godot_docs_supported_languages": list(supported_languages.keys()), "godot_docs_title": supported_languages[language], "godot_docs_basepath": "https://docs.godotengine.org/", "godot_docs_suffix": ".html", - "godot_default_lang": "en", - "godot_canonical_version": "stable", # Distinguish local development website from production website. # This prevents people from looking for changes on the production website after making local changes :) "godot_title_prefix": "" if on_rtd else "(DEV) ",