docs: only use sphinxcontrib-doxylink on Python 3
disable sphinxcontrib-googleanalytics
refs #4553
Change-Id: Idf9bb27e2ec98d30f1fb16394552d87ffc6dc471
diff --git a/docs/conf.py b/docs/conf.py
index d74db77..c9173c9 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -43,10 +43,12 @@
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']