extensions = []
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'django-soapbox'
copyright = u'2011-2015, James Bennett'
version = '1.1'
release = '1.1'
exclude_trees = ['_build']
pygments_style = 'sphinx'
html_static_path = ['_static']
htmlhelp_basename = 'django-soapboxdoc'
latex_documents = [
  ('index', 'django-soapbox.tex', u'django-soapbox Documentation',
   u'James Bennett', 'manual'),
]
html_theme = 'classic'


import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

extensions = []
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'django-soapbox'
copyright = u'2011-2015, James Bennett'
version = '1.1'
release = '1.1'
exclude_trees = ['_build']
pygments_style = 'sphinx'
html_static_path = ['_static']
htmlhelp_basename = 'django-soapboxdoc'
latex_documents = [
  ('index', 'django-soapbox.tex', u'django-soapbox Documentation',
   u'James Bennett', 'manual'),
]
if not on_rtd:
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


Switch to RTD docs theme.
Switch to RTD docs theme.

+ import os
+ 
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+ 
  extensions = []
  templates_path = ['_templates']
  source_suffix = '.rst'
  master_doc = 'index'
  project = u'django-soapbox'
  copyright = u'2011-2015, James Bennett'
  version = '1.1'
  release = '1.1'
  exclude_trees = ['_build']
  pygments_style = 'sphinx'
  html_static_path = ['_static']
  htmlhelp_basename = 'django-soapboxdoc'
  latex_documents = [
    ('index', 'django-soapbox.tex', u'django-soapbox Documentation',
     u'James Bennett', 'manual'),
  ]
- html_theme = 'classic'
+ if not on_rtd:
+     import sphinx_rtd_theme
+     html_theme = 'sphinx_rtd_theme'
+     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  
  
Switch to RTD docs theme.
## Code Before:
extensions = []
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'django-soapbox'
copyright = u'2011-2015, James Bennett'
version = '1.1'
release = '1.1'
exclude_trees = ['_build']
pygments_style = 'sphinx'
html_static_path = ['_static']
htmlhelp_basename = 'django-soapboxdoc'
latex_documents = [
  ('index', 'django-soapbox.tex', u'django-soapbox Documentation',
   u'James Bennett', 'manual'),
]
html_theme = 'classic'


## Instruction:
Switch to RTD docs theme.
## Code After:
import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

extensions = []
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'django-soapbox'
copyright = u'2011-2015, James Bennett'
version = '1.1'
release = '1.1'
exclude_trees = ['_build']
pygments_style = 'sphinx'
html_static_path = ['_static']
htmlhelp_basename = 'django-soapboxdoc'
latex_documents = [
  ('index', 'django-soapbox.tex', u'django-soapbox Documentation',
   u'James Bennett', 'manual'),
]
if not on_rtd:
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

