Skip to content

Commit

Permalink
Specify the version in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Jan 18, 2020
1 parent b712dd9 commit 0d61e63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = ''
# The full version, including alpha/beta/rc tags.
sys.path.insert(0, os.path.abspath('..'))
import gidgethub
release = gidgethub.__version__
del sys.path[0]
# The short X.Y version.
version = release[:release.index('.', 2)]


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 0d61e63

Please sign in to comment.