Fixed rtd docs generation

This commit is contained in:
Syrus Akbary 2016-09-11 22:13:57 -07:00
parent a0d07343e1
commit 94d46f7960

View File

@ -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']