From 062c55f99c64ad925dbccb285df862555570c1e5 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Wed, 20 Dec 2017 14:28:12 +0100 Subject: [PATCH] Update readthedocs config (#580) * Get Patroni version from patroni/version.py * Update copyright to match with the LICENSE file Fixes https://github.com/zalando/patroni/issues/519 --- docs/conf.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 84dfb6ee..20fa354c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,9 +18,11 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import sys +sys.path.insert(0, os.path.abspath('..')) + +from patroni.version import __version__ # -- General configuration ------------------------------------------------ @@ -51,7 +53,7 @@ master_doc = 'index' # General information about the project. project = 'Patroni' -copyright = '2016, Zalando SE' +copyright = '2015 Compose, Zalando SE' author = 'Zalando SE' # The version info for the project you're documenting, acts as replacement for @@ -59,9 +61,9 @@ author = 'Zalando SE' # built documents. # # The short X.Y version. -version = '1.2' +version = __version__[:__version__.rfind('.')] # The full version, including alpha/beta/rc tags. -release = '1.2.2' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.