From 70b65a282cd3403fda468a165ceccdd7991e600b Mon Sep 17 00:00:00 2001 From: Philip Cho Date: Sat, 5 Aug 2017 15:37:38 -0700 Subject: [PATCH] Use jQuery 2.2.4 (#2581) --- doc/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 65ebddccd..f4c079045 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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')