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')