diff options
| -rw-r--r-- | docs/source/conf.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 63e1b90..30be096 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,13 +11,16 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import datetime import sys, 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.append(os.path.abspath('.')) -sys.path.append(os.path.abspath('../../')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../')) + +import sqlparse # -- General configuration ----------------------------------------------------- @@ -40,16 +43,16 @@ master_doc = 'index' # General information about the project. project = u'python-sqlparse' -copyright = u'2009, Andi Albrecht' +copyright = u'%s, Andi Albrecht' % datetime.date.today().strftime('%Y') # 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 = '0.1.0' +version = sqlparse.__version__ # The full version, including alpha/beta/rc tags. -release = '0.1.0' +release = sqlparse.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
