We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 507345f + db7fa16 commit 58fe3aeCopy full SHA for 58fe3ae
doc/conf.py.in
@@ -178,10 +178,12 @@ for tag in tag_list:
178
release_list.append(tag.name)
179
180
omit_branch_list = [ 'release-0.5' ]
181
+allowed_branch_prefixes = ( 'release-', 'main' )
182
branch_list = sorted(repo.branches, key=lambda t: t.commit.committed_datetime)
183
for branch in branch_list:
184
if branch.name not in omit_branch_list:
- versions.append(branch.name)
185
+ if branch.name.startswith(allowed_branch_prefixes):
186
+ versions.append(branch.name)
187
188
if ((repo.head.object.hexsha) == (latest_tag.commit.hexsha)):
189
current_version = latest_tag.name
0 commit comments