docs: only use sphinxcontrib-doxylink on Python 3
disable sphinxcontrib-googleanalytics refs #4553 Change-Id: Idf9bb27e2ec98d30f1fb16394552d87ffc6dc471
This commit is contained in:
+5
-3
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user