sphinx doc version automatically follows __version__
This commit is contained in:
parent
0da60d43eb
commit
5dba22b8e7
@ -19,6 +19,9 @@ import shlex
|
||||
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.
|
||||
@ -59,10 +62,10 @@ author = u'Radovan Bast, Jonas Juselius, and contributors'
|
||||
# |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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user