X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=docs%2Fconf.py;h=a224bb8f6bb8816d9b04802a62a9428a550d4440;hb=6fb27a260658b04346999a4de0d78b0caacc6b2e;hp=6b2662630d10faf7e76cb352e6de181b98b954d4;hpb=159b4e3d7127e719a0dd12013dd54bf05b276ba9;p=sqlconvert.git diff --git a/docs/conf.py b/docs/conf.py index 6b26626..a224bb8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,9 +16,10 @@ # 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. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +from datetime import date +import os +import sys +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ @@ -52,17 +53,19 @@ master_doc = 'index' # General information about the project. project = u'sqlconvert' -copyright = u'2016, Oleg Broytman' author = u'Oleg Broytman' +copyright = u'2016-%d, %s' % (date.today().year, author) # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # 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.