Merge pull request #5 from ChristopherMSpencer/read_the_docs_conf
updating conf to include READTHEDOCS env
This commit is contained in:
		@@ -16,6 +16,9 @@ import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
sys.path.insert(0, os.path.abspath('../..'))
 | 
			
		||||
on_read_the_docs = os.environ.get('READTHEDOCS') == 'True'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# -- General configuration ----------------------------------------------------
 | 
			
		||||
 | 
			
		||||
# Add any Sphinx extension module names here, as strings. They can be
 | 
			
		||||
@@ -23,9 +26,11 @@ sys.path.insert(0, os.path.abspath('../..'))
 | 
			
		||||
extensions = [
 | 
			
		||||
    'sphinx.ext.autodoc',
 | 
			
		||||
    #'sphinx.ext.intersphinx',
 | 
			
		||||
    'oslosphinx'
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
if not on_read_the_docs:
 | 
			
		||||
    extensions.append('oslosphinx')
 | 
			
		||||
 | 
			
		||||
# autodoc generation is a bit aggressive and a nuisance when doing heavy
 | 
			
		||||
# text edit cycles.
 | 
			
		||||
# execute "export SPHINX_DEBUG=1" in your terminal to disable
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user