From 94d46f7960c2a1943d1f9e1a4bc089c15a32c4af Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sun, 11 Sep 2016 22:13:57 -0700 Subject: [PATCH] Fixed rtd docs generation --- docs/conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 28799b40..c7a6a231 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,7 @@ +import os + +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + # -*- coding: utf-8 -*- # # Graphene documentation build configuration file, created by @@ -35,8 +39,11 @@ extensions = [ 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages', ] +if not on_rtd: + extensions += [ + 'sphinx.ext.githubpages', + ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']