Skip to content

Commit

Permalink
conf.py: Get version from RTD when available
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Mar 31, 2020
1 parent 7ef16dd commit 605222c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

# Version info for the project, acts as replacement for |version| and |release|
# The short X.Y version
version = "latest"
version = os.getenv("READTHEDOCS_VERSION", "latest")
# The full version, including alpha/beta/rc tags
release = "latest"
release = version

# Parse Sphinx tags passed from RTD via environment
env_tags = os.getenv("SPHINX_TAGS")
Expand Down

0 comments on commit 605222c

Please sign in to comment.