docs: only use sphinxcontrib-doxylink on Python 3

disable sphinxcontrib-googleanalytics

refs #4553

Change-Id: Idf9bb27e2ec98d30f1fb16394552d87ffc6dc471
This commit is contained in:
Eric Newberry
2018-03-25 14:33:05 -07:00
parent 0b3beaba0c
commit d74b6977ca
+5 -3
View File
@@ -43,10 +43,12 @@ def addExtensionIfExists(extension):
sys.stderr.write("To install, use \n"
" sudo pip install %s\n" % extension.replace('.', '-'))
addExtensionIfExists('sphinxcontrib.doxylink')
if sys.version_info[0] >= 3:
addExtensionIfExists('sphinxcontrib.doxylink')
if os.getenv('GOOGLE_ANALYTICS', None):
addExtensionIfExists('sphinxcontrib.googleanalytics')
# sphinxcontrib.googleanalytics is currently not working with the latest version of sphinx
# if os.getenv('GOOGLE_ANALYTICS', None):
# addExtensionIfExists('sphinxcontrib.googleanalytics')
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']