From c44de7e87034a5c5f783a37618d6cdd2525cc2f7 Mon Sep 17 00:00:00 2001 From: Erick Wilder Date: Thu, 9 Jun 2016 17:42:22 +0200 Subject: [PATCH] Use current `channels` version when building the documentation. (#201) Rationale: --- It may cause some confusion for the reader of the documentation about what's the most recent version of the library and if the official documentation pages are really for the 'latest' version. --- docs/conf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fe3f65e..760f97f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,9 @@ 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('..')) + +from channels import __version__ # noqa # -- General configuration ------------------------------------------------ @@ -51,9 +53,9 @@ copyright = u'2015, Andrew Godwin' # built documents. # # The short X.Y version. -version = '1.0' +version = __version__ # The full version, including alpha/beta/rc tags. -release = '1.0' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.