File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 227
227
sphinx .util .i18n .docname_to_domain
228
228
) = lambda docname , compact : docname .split ('/' )[1 if docname .startswith ('applications/' ) else 0 ]
229
229
230
- # The version names that should be shown in the version switcher, if the config option `versions`
231
- # is populated .
230
+ # The labels used in the version switcher to show the versions provided with the `versions` config
231
+ # option. If a provided version has no label, the version string is used as label .
232
232
versions_names = {
233
233
'master' : "Master" ,
234
234
'saas-18.2' : "Odoo 18.2" ,
239
239
'16.0' : "Odoo 16" ,
240
240
}
241
241
242
- # The language names that should be shown in the language switcher, if the config option `languages`
243
- # is populated .
242
+ # The labels used in the language switcher to show the languages provided with the `languages`
243
+ # config option. If a provided language code has no label, the upper-cased code is used as label .
244
244
languages_names = {
245
245
'de' : 'DE' ,
246
246
'en' : 'EN' ,
@@ -458,7 +458,7 @@ def versionize():
458
458
459
459
# Map alternate versions to their display names and URLs.
460
460
context ['alternate_versions' ] = []
461
- for alternate_version_ in provided_versions_ :
461
+ for alternate_version_ in reversed ( provided_versions_ ): # Reverse to show latest first.
462
462
if alternate_version_ != version :
463
463
display_name_ = versions_names .get (alternate_version_ , alternate_version_ )
464
464
context ['alternate_versions' ].append ((display_name_ , build_url (alternate_version_ )))
You can’t perform that action at this time.
0 commit comments