1. Konstantine Rybnikov
  2. blog

Source

blog / source / conf.py

Diff from to

File source/conf.py

 # serve to show the default.
 
 import sys, os
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = ['sphinx.ext.todo', 'sphinx.ext.pngmath',
-              'sphinx.ext.ifconfig', 'sphinx.ext.viewcode',
-              'sphinxcontrib.feed']
+              'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
+if not on_rtd:
+    'sphinxcontrib.feed'
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']