From cad180acb0a1febe36351f282f0c47c8361e0602 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Sat, 20 Sep 2025 08:51:12 -0700 Subject: [PATCH 1/2] Add JupyterCon banner and jupyter colors --- docs/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 69a67bc76b..fbe12b41e7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -155,6 +155,7 @@ def setup(app): htmlhelp_basename = 'ipywidgetsdoc' html_theme_options = { + "announcement": "🚀 Join us in San Diego · JupyterCon 2025 · Nov 4-5 · SCHEDULE · REGISTER NOW", "icon_links": [ { "name": "PyPI", @@ -220,3 +221,6 @@ def setup(app): epub_author = author epub_publisher = author epub_copyright = copyright + +def setup(app): + app.add_css_file("https://docs.jupyter.org/en/latest/_static/jupyter.css") From cc89d7f6848769e16519fca6d25f24018548d370 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Mon, 22 Sep 2025 09:50:28 -0700 Subject: [PATCH 2/2] Add to the existing docs setup function rather than overwriting it --- docs/source/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index fbe12b41e7..670737b69d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -40,6 +40,8 @@ def on_config_inited(*args): def setup(app): app.connect("config-inited", on_config_inited) + app.add_css_file("https://docs.jupyter.org/en/latest/_static/jupyter.css") + # -- Sphinx extensions and configuration ------------------------ @@ -221,6 +223,3 @@ def setup(app): epub_author = author epub_publisher = author epub_copyright = copyright - -def setup(app): - app.add_css_file("https://docs.jupyter.org/en/latest/_static/jupyter.css")