|
97 | 97 | # Language / i18n |
98 | 98 |
|
99 | 99 | supported_languages = { |
100 | | - "en": "Godot Engine (%s) documentation in English", |
101 | | - "de": "Godot Engine (%s) Dokumentation auf Deutsch", |
102 | | - "es": "Documentación de Godot Engine (%s) en español", |
103 | | - "fr": "Documentation de Godot Engine (%s) en français", |
104 | | - "fi": "Godot Engine (%s) dokumentaatio suomeksi", |
105 | | - "it": "Godot Engine (%s) documentazione in italiano", |
106 | | - "ja": "Godot Engine (%s)の日本語のドキュメント", |
107 | | - "ko": "Godot Engine (%s) 문서 (한국어)", |
108 | | - "pl": "Dokumentacja Godot Engine (%s) w języku polskim", |
109 | | - "pt_BR": "Documentação da Godot Engine (%s) em Português Brasileiro", |
110 | | - "ru": "Документация Godot Engine (%s) на русском языке", |
111 | | - "uk": "Документація до Godot Engine (%s) українською мовою", |
112 | | - "zh_CN": "Godot Engine (%s) 简体中文文档", |
113 | | - "zh_TW": "Godot Engine (%s) 正體中文 (台灣) 文件", |
| 100 | + "en": "Godot Engine %s documentation in English", |
| 101 | + "de": "Godot Engine %s Dokumentation auf Deutsch", |
| 102 | + "es": "Documentación de Godot Engine %s en español", |
| 103 | + "fr": "Documentation de Godot Engine %s en français", |
| 104 | + "fi": "Godot Engine %s dokumentaatio suomeksi", |
| 105 | + "it": "Godot Engine %s documentazione in italiano", |
| 106 | + "ja": "Godot Engine %sの日本語のドキュメント", |
| 107 | + "ko": "Godot Engine %s 문서 (한국어)", |
| 108 | + "pl": "Dokumentacja Godot Engine %s w języku polskim", |
| 109 | + "pt_BR": "Documentação da Godot Engine %s em Português Brasileiro", |
| 110 | + "ru": "Документация Godot Engine %s на русском языке", |
| 111 | + "uk": "Документація до Godot Engine %s українською мовою", |
| 112 | + "zh_CN": "Godot Engine %s 简体中文文档", |
| 113 | + "zh_TW": "Godot Engine %s 正體中文 (台灣) 文件", |
114 | 114 | } |
115 | 115 |
|
116 | 116 | language = os.getenv("READTHEDOCS_LANGUAGE", "en") |
|
155 | 155 | "logo_only": True, |
156 | 156 | # Collapse navigation (False makes it tree-like) |
157 | 157 | "collapse_navigation": False, |
| 158 | + # Hide the documentation version name/number under the logo |
| 159 | + "display_version": False, |
158 | 160 | } |
159 | 161 |
|
160 | | -html_title = supported_languages[language] % version |
| 162 | +html_title = supported_languages[language] % ( "(" + version + ")" ) |
161 | 163 |
|
162 | 164 | # VCS options: https://docs.readthedocs.io/en/latest/vcs.html#github |
163 | 165 | html_context = { |
|
168 | 170 | "conf_py_path": "/", # Path in the checkout to the docs root |
169 | 171 | "godot_inject_language_links": True, |
170 | 172 | "godot_docs_supported_languages": list(supported_languages.keys()), |
| 173 | + "godot_docs_title": supported_languages[language], |
171 | 174 | "godot_docs_basepath": "https://docs.godotengine.org/", |
172 | 175 | "godot_docs_suffix": ".html", |
173 | 176 | "godot_default_lang": "en", |
|
195 | 198 | html_css_files = [ |
196 | 199 | 'css/algolia.css', |
197 | 200 | 'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css', |
198 | | - "css/custom.css?9", # Increment the number at the end when the file changes to bust the cache. |
| 201 | + "css/custom.css?10", # Increment the number at the end when the file changes to bust the cache. |
199 | 202 | ] |
200 | 203 |
|
201 | 204 | if not on_rtd: |
202 | 205 | html_css_files.append("css/dev.css") |
203 | 206 |
|
204 | 207 | html_js_files = [ |
205 | | - "js/custom.js?5", # Increment the number at the end when the file changes to bust the cache. |
| 208 | + "js/custom.js?6", # Increment the number at the end when the file changes to bust the cache. |
206 | 209 | ('https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js', {'defer': 'defer'}), |
207 | 210 | ('js/algolia.js', {'defer': 'defer'}) |
208 | 211 | ] |
|
0 commit comments