docs: only use sphinxcontrib-doxylink on Python 3

refs #4553

Change-Id: I54fead17b17a835046af73ef6b5e0b169b30654e
diff --git a/docs/conf.py b/docs/conf.py
index ae8f556..0af0eb2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -44,7 +44,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):