|
@@ -97,20 +97,20 @@ if env_tags is not None:
|
|
|
# Language / i18n
|
|
|
|
|
|
supported_languages = {
|
|
|
- "en": "Godot Engine (%s) documentation in English",
|
|
|
- "de": "Godot Engine (%s) Dokumentation auf Deutsch",
|
|
|
- "es": "Documentación de Godot Engine (%s) en español",
|
|
|
- "fr": "Documentation de Godot Engine (%s) en français",
|
|
|
- "fi": "Godot Engine (%s) dokumentaatio suomeksi",
|
|
|
- "it": "Godot Engine (%s) documentazione in italiano",
|
|
|
- "ja": "Godot Engine (%s)の日本語のドキュメント",
|
|
|
- "ko": "Godot Engine (%s) 문서 (한국어)",
|
|
|
- "pl": "Dokumentacja Godot Engine (%s) w języku polskim",
|
|
|
- "pt_BR": "Documentação da Godot Engine (%s) em Português Brasileiro",
|
|
|
- "ru": "Документация Godot Engine (%s) на русском языке",
|
|
|
- "uk": "Документація до Godot Engine (%s) українською мовою",
|
|
|
- "zh_CN": "Godot Engine (%s) 简体中文文档",
|
|
|
- "zh_TW": "Godot Engine (%s) 正體中文 (台灣) 文件",
|
|
|
+ "en": "Godot Engine %s documentation in English",
|
|
|
+ "de": "Godot Engine %s Dokumentation auf Deutsch",
|
|
|
+ "es": "Documentación de Godot Engine %s en español",
|
|
|
+ "fr": "Documentation de Godot Engine %s en français",
|
|
|
+ "fi": "Godot Engine %s dokumentaatio suomeksi",
|
|
|
+ "it": "Godot Engine %s documentazione in italiano",
|
|
|
+ "ja": "Godot Engine %sの日本語のドキュメント",
|
|
|
+ "ko": "Godot Engine %s 문서 (한국어)",
|
|
|
+ "pl": "Dokumentacja Godot Engine %s w języku polskim",
|
|
|
+ "pt_BR": "Documentação da Godot Engine %s em Português Brasileiro",
|
|
|
+ "ru": "Документация Godot Engine %s на русском языке",
|
|
|
+ "uk": "Документація до Godot Engine %s українською мовою",
|
|
|
+ "zh_CN": "Godot Engine %s 简体中文文档",
|
|
|
+ "zh_TW": "Godot Engine %s 正體中文 (台灣) 文件",
|
|
|
}
|
|
|
|
|
|
language = os.getenv("READTHEDOCS_LANGUAGE", "en")
|
|
@@ -155,9 +155,11 @@ html_theme_options = {
|
|
|
"logo_only": True,
|
|
|
# Collapse navigation (False makes it tree-like)
|
|
|
"collapse_navigation": False,
|
|
|
+ # Hide the documentation version name/number under the logo
|
|
|
+ "display_version": False,
|
|
|
}
|
|
|
|
|
|
-html_title = supported_languages[language] % version
|
|
|
+html_title = supported_languages[language] % ( "(" + version + ")" )
|
|
|
|
|
|
# VCS options: https://docs.readthedocs.io/en/latest/vcs.html#github
|
|
|
html_context = {
|
|
@@ -168,6 +170,7 @@ html_context = {
|
|
|
"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",
|
|
@@ -195,14 +198,14 @@ html_extra_path = ["robots.txt"]
|
|
|
html_css_files = [
|
|
|
'css/algolia.css',
|
|
|
'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css',
|
|
|
- "css/custom.css?9", # Increment the number at the end when the file changes to bust the cache.
|
|
|
+ "css/custom.css?10", # Increment the number at the end when the file changes to bust the cache.
|
|
|
]
|
|
|
|
|
|
if not on_rtd:
|
|
|
html_css_files.append("css/dev.css")
|
|
|
|
|
|
html_js_files = [
|
|
|
- "js/custom.js?5", # Increment the number at the end when the file changes to bust the cache.
|
|
|
+ "js/custom.js?6", # Increment the number at the end when the file changes to bust the cache.
|
|
|
('https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js', {'defer': 'defer'}),
|
|
|
('js/algolia.js', {'defer': 'defer'})
|
|
|
]
|