Skip to content

Commit f2c5f08

Browse files
authored
Update conf.py
1 parent 70f096a commit f2c5f08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
# Looking up a branch name or tag requires switching on the event type that triggered the workflow
9595
# so just use the SHA of the commit instead.
9696
version = os.environ.get("GITHUB_SHA")
97+
rtd_version = "stable" # default to stable when not on rtd
9798
else:
9899
# When running locally, try to set version to a branch name that could be
99100
# used to reference files on GH that could be added or moved. This should match rtd_version when running
@@ -104,6 +105,7 @@
104105
version = output
105106
else:
106107
raise Exception("git rev-parse --abbrev-ref HEAD returned non-zero")
108+
rtd_version = "stable" # default to stable when not on rtd
107109

108110
# for now make these match
109111
release = version

0 commit comments

Comments
 (0)