From f5babcf519a243f8a9ecdb91e6ef857742ff5af4 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:35:00 +0200 Subject: [PATCH] FIX: support Plotly in static webpages Fixes this problem: https://readthedocs.org/projects/compwa-org/builds/22021411 --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 4cdb4a7a..e71ba049 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -132,6 +132,9 @@ def fetch_logo(url: str, output_path: str) -> None: html_copy_source = True # needed for download notebook button html_css_files = ["custom.css"] html_favicon = "_static/favicon.ico" +html_js_files = [ + "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js", +] html_last_updated_fmt = "%-d %B %Y" html_show_copyright = False html_show_sourcelink = False @@ -274,6 +277,7 @@ def get_minor_version(package_name: str) -> str: bibtex_bibfiles = ["bibliography.bib"] suppress_warnings = [ "myst.domains", + "mystnb.unknown_mime_type", ] # Settings for copybutton