Skip to content

Commit

Permalink
fix version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed May 13, 2021
1 parent e7fb8b5 commit 4e7324d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Expand Up @@ -56,7 +56,12 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
rltk_version = open('../VERSION').readline().strip()
with open('../rltk/__init__.py', 'r') as f:
for line in f:
if line.startswith('__version__'):
exec(line) # fetch and create __version__
break
rltk_version = __version__
# The short X.Y version.
version = '.'.join(rltk_version.split('.')[:2])
# The full version, including alpha/beta/rc tags.
Expand Down Expand Up @@ -186,4 +191,4 @@


def setup(app):
app.add_stylesheet('style.css')
app.add_stylesheet('style.css')

0 comments on commit 4e7324d

Please sign in to comment.