diff --git a/conf.py b/conf.py index 79c65a93f..0a397f26b 100644 --- a/conf.py +++ b/conf.py @@ -292,9 +292,10 @@ def _generate_alternate_urls(app, pagename, templatename, context, doctree): _alternate_versions = app.config.versions and app.config.versions.split(',') or [] context['alternate_versions'] = [ (_alternate_version, _build_url(_version=_alternate_version)) - for _alternate_version in _alternate_versions - if _alternate_version != version - and (_alternate_version != 'master' or pagename.startswith('developer')) + for _alternate_version in sorted(_alternate_versions, reverse=True) + if _alternate_version != version and ( + _alternate_version != 'master' or pagename.startswith('developer') + ) ] def _localize(): diff --git a/content/applications/sales.rst b/content/applications/sales.rst index 9fdcb0488..58dfcff9b 100644 --- a/content/applications/sales.rst +++ b/content/applications/sales.rst @@ -7,5 +7,4 @@ Sales sales/crm sales/sales - sales/point_of_sale - sales/sales \ No newline at end of file + sales/point_of_sale \ No newline at end of file diff --git a/content/developer.rst b/content/developer.rst index b21719579..a125ce53c 100644 --- a/content/developer.rst +++ b/content/developer.rst @@ -1,8 +1,8 @@ -======================= -Developer Documentation -======================= +========= +Developer +========= .. toctree::