From 007a3ef8b621a7e8ec62bee5f2cb1e3eb0d2defa Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Thu, 30 Apr 2015 15:26:40 +0300 Subject: [PATCH] Remove insertIframe.js It hasn't been used since f82c04f. Also, the line adding the script had an unneeded pathto call, so the script was being loaded from the wrong path anyway. --- doc/_static/insertIframe.js | 12 ------------ doc/_themes/blue/layout.html | 1 - doc/conf.py | 2 +- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 doc/_static/insertIframe.js diff --git a/doc/_static/insertIframe.js b/doc/_static/insertIframe.js deleted file mode 100644 index 0a3099a8c2..0000000000 --- a/doc/_static/insertIframe.js +++ /dev/null @@ -1,12 +0,0 @@ -function insertIframe (elementId, iframeSrc) -{ - var iframe; - if (document.createElement && (iframe = document.createElement('iframe'))) - { - iframe.src = unescape(iframeSrc); - iframe.width = "100%"; - iframe.height = "511px"; - var element = document.getElementById(elementId); - element.parentNode.replaceChild(iframe, element); - } -} diff --git a/doc/_themes/blue/layout.html b/doc/_themes/blue/layout.html index d0d43031c8..57b0de77e0 100644 --- a/doc/_themes/blue/layout.html +++ b/doc/_themes/blue/layout.html @@ -11,7 +11,6 @@ {%- endblock %} -{% set script_files = script_files + [pathto("_static/insertIframe.js", 1)] %} {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and diff --git a/doc/conf.py b/doc/conf.py index 5ee8decd00..0bf75ad488 100755 --- a/doc/conf.py +++ b/doc/conf.py @@ -132,7 +132,7 @@ html_logo = 'opencv-logo-white.png' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.