Skip to content

Commit

Permalink
sphinx doc version automatically follows __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jul 18, 2016
1 parent 0da60d4 commit 5dba22b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
sys.path.append(os.path.relpath(os.path.abspath('.')))
import extract_rst

sys.path.append(os.path.relpath(os.path.abspath('..')))
from autocmake import __version__ as _version

# 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.
Expand Down Expand Up @@ -59,10 +62,10 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.0'
# The full version, including alpha/beta/rc tags.
release = '1.0.0-alpha-x'
release = _version
# The short X.Y version.
version = '.'.join(release.split('.')[0:2])

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

0 comments on commit 5dba22b

Please sign in to comment.