Skip to content

Commit

Permalink
Get version number for docs from module
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Feb 2, 2018
1 parent 6970744 commit ca188f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))

# -- General configuration -----------------------------------------------------

Expand Down Expand Up @@ -47,10 +47,11 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
import xdg
# The short X.Y version.
version = '0.23'
version = xdg.__version__
# The full version, including alpha/beta/rc tags.
release = '0.23'
release = xdg.__version__

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

0 comments on commit ca188f1

Please sign in to comment.