docs: only use sphinxcontrib-doxylink on Python 3
refs #4553
Change-Id: I001d1fddc13994f8a522251a439cad0467bd8c58
diff --git a/docs/conf.py b/docs/conf.py
index 0e7d000..99b993a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,7 +46,8 @@
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')
# sphinxcontrib.googleanalytics is currently not working with the latest version of Sphinx
# if os.getenv('GOOGLE_ANALYTICS', None):