Merge branch '12.0-one-doc-edi' of github.com:odoo/documentation-user into 12.0-one-doc-edi

This commit is contained in:
Elisabeth Dickinson 2021-03-08 18:21:57 +01:00
commit 7dcb458585
2 changed files with 5 additions and 2 deletions

View File

@ -292,7 +292,9 @@ 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
for _alternate_version in _alternate_versions
if _alternate_version != version
and (_alternate_version != 'master' or pagename.startswith('developer'))
]
def _localize():

View File

@ -10,7 +10,8 @@
tabs.forEach(tab => {
tab.classList.add('tab-pane');
})
});
function select(index) {
links.forEach(link => {
link.classList.remove('active');