Skip to content

Commit 181206b

Browse files
committed
Remove canonical/hreflang tags, let RTD I18N do it
1 parent 5b0f792 commit 181206b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

_templates/layout.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@
1313

1414
{% block linktags -%}
1515
<meta name="theme-color" content="#3d8fcc" />
16-
{% if godot_inject_language_links -%}
17-
{% for alternate_lang in godot_docs_supported_languages -%}
18-
{# Convert to ISO 639-1 format, e.g. zh_CN -> zh-cn -#}
19-
{% set alternate_lang_href = alternate_lang.lower().replace("_", "-") -%}
20-
<link rel="alternate" hreflang="{{ alternate_lang_href }}" href="{{ godot_docs_basepath }}{{ alternate_lang }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
21-
{% endfor -%}
22-
<link rel="alternate" hreflang="x-default" href="{{ godot_docs_basepath }}{{ godot_default_lang }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
23-
24-
<link rel="canonical" href="{{ godot_docs_basepath }}{{ lang_attr }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
25-
{% endif -%}
2616
{{ super() }}
2717
{% endblock -%}
2818

conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,9 @@
181181
"github_repo": "godot-docs", # Repo name
182182
"github_version": "master", # Version
183183
"conf_py_path": "/", # Path in the checkout to the docs root
184-
"godot_inject_language_links": True,
185-
"godot_docs_supported_languages": list(supported_languages.keys()),
186184
"godot_docs_title": supported_languages[language],
187185
"godot_docs_basepath": "https://docs.godotengine.org/",
188186
"godot_docs_suffix": ".html",
189-
"godot_default_lang": "en",
190-
"godot_canonical_version": "stable",
191187
# Distinguish local development website from production website.
192188
# This prevents people from looking for changes on the production website after making local changes :)
193189
"godot_title_prefix": "" if on_rtd else "(DEV) ",

0 commit comments

Comments
 (0)