Skip to content

Commit 8fb65ab

Browse files
committed
docs: change latest to master
1 parent fcb9836 commit 8fb65ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docsrc/poly.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#: Regex matching the tags to build docs for
3333
TAG_REGEX = r"^v[\.0-9]*$"
34-
TAG_REGEX = r"^v1.1.6$"
34+
# TAG_REGEX = r"^(v1.1.6)$"
3535

3636
#: Output dir relative to project root
3737
OUTPUT_DIR = "_build_polyversion"
@@ -71,6 +71,9 @@ def data(driver, rev, env):
7171
revisions = driver.targets
7272
branches, tags = refs_by_type(revisions)
7373
latest = max(tags or branches)
74+
named_master = (r for r in branches if r.name == "master")
75+
if len(named_master) > 0:
76+
(latest,) = named_master
7477
# sort tags and branches by date, newest first
7578
return {
7679
"current": rev,

0 commit comments

Comments
 (0)