Commits

Andy Mikhailenko committed a644853

Fixed docs so that displayed version always corresponds to that of the package.

Comments (0)

Files changed (1)

 # 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('..'))
+from monk import __version__
 
 # -- General configuration -----------------------------------------------------
 
 # built documents.
 #
 # The short X.Y version.
-version = '0.0.1'
+version = __version__.rpartition('.')[0]
 # The full version, including alpha/beta/rc tags.
-release = '0.0.1'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.