]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
generate version from ceph_deploy directly
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 21 Oct 2013 13:41:12 +0000 (09:41 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 21 Oct 2013 13:41:12 +0000 (09:41 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
docs/source/conf.py

index a256357a782c2d28ec7c47e04c9329cde92fa350..0b35b1fe55127f02f7322629bb53d601e0f92b22 100644 (file)
@@ -18,7 +18,8 @@ import os
 # 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('..'))
+import ceph_deploy
 
 # -- General configuration ------------------------------------------------
 
@@ -54,9 +55,9 @@ copyright = u'2013, Inktank'
 # built documents.
 #
 # The short X.Y version.
-version = '1.3'
+version = ceph_deploy.__version__
 # The full version, including alpha/beta/rc tags.
-release = '1.3'
+release = ceph_deploy.__version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -261,5 +262,6 @@ texinfo_documents = [
 #texinfo_no_detailmenu = False
 
 
+# XXX Uncomment when we are ready to link to ceph docs
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+#intersphinx_mapping = {'http://docs.python.org/': None}