Skip to content

Commit

Permalink
[sphinx] use versioneer version
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Apr 27, 2017
1 parent d646be9 commit 942fff8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/conf.py
Expand Up @@ -58,11 +58,10 @@ def __getattr__(cls, name):
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

from adaptivemd import version as v
import adaptivemd

print("Generating doc for AdaptiveMD version {version} installed in {path}"
.format(version=v.short_version, path=v.__file__))
.format(version=adaptivemd.__version__, path=adaptivemd.__path__))

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -116,9 +115,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = v.short_version
version = adaptivemd.__version__
# The full version, including alpha/beta/rc tags.
release = v.full_version
release = adaptivemd.__version__

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

0 comments on commit 942fff8

Please sign in to comment.