X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=docs%2Fconf.py;h=a224bb8f6bb8816d9b04802a62a9428a550d4440;hb=6eef985072f5fec3b2fc7cf2f89f7d8130056679;hp=ecbec327e4a27fbcb7b30614ba482bbac37209e5;hpb=d37aa4171740015b0e1f65b4678ccb02be9d8330;p=sqlconvert.git diff --git a/docs/conf.py b/docs/conf.py index ecbec32..a224bb8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,9 +17,9 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # from datetime import date -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ @@ -61,9 +61,11 @@ copyright = u'2016-%d, %s' % (date.today().year, author) # built documents. # # The short X.Y version. -version = u'0.0' +from sqlconvert.__version__ import __version__ +# The short X.Y version. +version = '.'.join(__version__.split('.')[:2]) # The full version, including alpha/beta/rc tags. -release = u'0.0.1' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.