[doc] only show document for release-1.4 for 1.x

pull/301/head
Leonard Xu 4 years ago
parent f701f9c38b
commit e992f2797c

@ -123,8 +123,9 @@ html_context['versions'] = list()
branches = [branch.name for branch in remote_refs] branches = [branch.name for branch in remote_refs]
for branch in branches: for branch in branches:
if 'origin/' in branch and ('master' in branch or 'release-' in branch)\ if 'origin/' in branch and ('master' in branch or 'release-' in branch)\
and 'HEAD' not in branch and 'gh-pages' not in branch\ and 'HEAD' not in branch and 'gh-pages' not in branch \
and 'release-1.1' not in branch and 'release-1.2' not in branch and 'release-1.3' not in branch: and 'release-1.0' not in branch and 'release-1.1' not in branch\
and 'release-1.2' not in branch and 'release-1.3' not in branch:
version = branch[7:] version = branch[7:]
html_context['versions'].append( (version, '/' +REPO_NAME+ '/' +version+ '/') ) html_context['versions'].append( (version, '/' +REPO_NAME+ '/' +version+ '/') )

Loading…
Cancel
Save