From a87fd994bd8d37d54f37cc01a77e76230e30a3f3 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jun 05 2017 16:30:50 +0000 Subject: Fix the docs builder There's a compatibility issue between sphinx and autohttp.flask[0], so this pins the version sphinx used. [0] https://bitbucket.org/birkenfeld/sphinx-contrib/issues/182 Signed-off-by: Jeremy Cline --- diff --git a/dev-requirements.txt b/dev-requirements.txt index a96f607..efc2b73 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -6,5 +6,6 @@ pytest-cov requests_mock # Documentation build requirements -sphinx +# Pin sphinx until https://bitbucket.org/birkenfeld/sphinx-contrib/issues/182 is fixed and released +sphinx==1.5.6 sphinxcontrib-httpdomain diff --git a/docs/conf.py b/docs/conf.py index 5e920dc..336a242 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,10 +17,11 @@ # 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('.')) -import greenwave +import os +import sys +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) + +import greenwave # noqa: E402 # -- General configuration ------------------------------------------------