Use jQuery 2.2.4 (#2581)

This commit is contained in:
Philip Cho 2017-08-05 15:37:38 -07:00 committed by Tianqi Chen
parent eda9e180f0
commit 70b65a282c

View File

@ -14,6 +14,7 @@
import sys
import os, subprocess
import shlex
import urllib
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@ -163,7 +164,10 @@ def setup(app):
# Add hook for building doxygen xml when needed
# no c++ API for now
# app.connect("builder-inited", generate_doxygen_xml)
urllib.urlretrieve('https://code.jquery.com/jquery-2.2.4.min.js',
'_static/jquery.js')
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url,
}, True)
app.add_transform(AutoStructify)
app.add_javascript('jquery.js')