File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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) " ,
You can’t perform that action at this time.
0 commit comments