diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 00000000..1536f1a2 --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,3 @@ +.jupyter-widgets-disconnected::before { + content: none !important; +} diff --git a/docs/conf.py b/docs/conf.py index 17f76b50..3bfe41b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -53,8 +53,18 @@ ] # -- Extension configuration ------------------------------------------------- -jupyter_execute_notebooks = "off" +nb_execution_mode = "off" myst_enable_extensions = ["colon_fence", "deflist"] +# nb_ipywidgets_js = { +# "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js": { +# "integrity": "sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=", +# "crossorigin": "anonymous" +# }, +# "https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@*/dist/embed-amd.js": { +# "data-jupyter-widgets-cdn": "https://cdn.jsdelivr.net/npm/", +# "crossorigin": "anonymous" +# } +# } thebe_config = { "always_load": True, @@ -98,6 +108,7 @@ # 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", "logos"] +html_css_files = ["custom.css"] # -- Options for HTML output ------------------------------------------------- @@ -123,7 +134,7 @@ { "name": "GitHub", "url": "https://github.com/arviz-devs/preliz", - "icon": "fab fa-github-square", + "icon": "fa-brands fa-github", }, ], "logo": { @@ -131,6 +142,13 @@ "image_dark": "PreliZ_flat_white.png", }, } +html_context = { + "github_user": "arviz-devs", + "github_repo": "preliz", + "github_version": "main", + "doc_path": "docs/", + "default_mode": "light", +} # -- Options for HTMLHelp output ---------------------------------------------