diff --git a/.github/workflows/docs_build.yml b/.github/workflows/docs_build.yml index a17b1d709..cdf86828d 100644 --- a/.github/workflows/docs_build.yml +++ b/.github/workflows/docs_build.yml @@ -10,6 +10,7 @@ on: - '**.py' - '**.ipynb' - '**.jinja' + - '**.js' - poetry.lock - pyproject.toml - '**.rst' diff --git a/.github/workflows/docs_deploy.yml b/.github/workflows/docs_deploy.yml index e93635dbb..6091d6647 100644 --- a/.github/workflows/docs_deploy.yml +++ b/.github/workflows/docs_deploy.yml @@ -13,6 +13,7 @@ on: - '**.py' - '**.ipynb' - '**.jinja' + - '**.js' - poetry.lock - pyproject.toml - '**.rst' diff --git a/docs/source/_static/custom.js b/docs/source/_static/custom.js new file mode 100644 index 000000000..738d14549 --- /dev/null +++ b/docs/source/_static/custom.js @@ -0,0 +1,6 @@ +requirejs.config({ + paths: { + base: '/static/base', + plotly: 'https://cdn.plot.ly/plotly-2.30.0.min.js?noext', + }, +}); diff --git a/docs/source/_static/require.min.js b/docs/source/_static/require.min.js new file mode 100644 index 000000000..73dbde8aa --- /dev/null +++ b/docs/source/_static/require.min.js @@ -0,0 +1 @@ +var requirejs,require,define;!function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.6",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){var i;if(e)for(i=0;i