Skip to content

fix build issues due to newer jupyter book theme upstream release - #29

Merged
batpad merged 1 commit into
mainfrom
fix-build
Dec 1, 2026
Merged

batpad merged 1 commit into
mainfrom
fix-build

Conversation

@batpad

@batpad batpad commented Dec 1, 2026

Copy link
Copy Markdown
Member

The build on main failed because we were not pinning the version of the jupyter book theme declared and upstream had a new release.

This upgrades all packages to work with the new theme, and then also pins the theme to the latest version so it doesn't break on new themes in the future.

cc @dzole0311

PR message from Claude:

Fix docs deploy: upgrade mystmd and pin the MyST theme

Problem

The docs deploy was failing at the theme step:

Your version of mystmd (or jupyter-book) does not support this version of the MyST theme.
The newest supported theme for your document engine version is '1.4.1'.
App server exited (code 1) before becoming ready

Cause

docs/myst.yml set template: book-theme, which downloads the newest theme every time the site builds. But mystmd was locked at 1.10.1 in package-lock.json. myst-theme released a new major version (myst-to-react@2.0.0, now at 2.1.1), and mystmd 1.10.1 can only run themes up to 1.4.1.

Local builds still worked because docs/_build/templates held an older cached theme. CI starts with no cache, so it downloaded 2.x and failed. Clearing docs/_build/templates reproduces the error locally.

Fix

  • Upgrade mystmd from ^1.8.3 to ^1.13.0 (locked at 1.13.0), which supports the 2.x theme.
  • Pin the theme in docs/myst.yml to the myst-to-react@2.1.1 release URL instead of book-theme. The build now uses only the theme version in myst.yml and the mystmd version in the lockfile, so a new theme release can't break CI. When you want a newer theme, update the template URL and mystmd together.

Verification

  • Cleared the template cache and ran myst build --html with BASE_URL=/manywidgets: all 36 pages build, and the static-export plugin exports every widget as before.
  • Served the built site and took headless Chrome screenshots of the demo and lonboard example pages: the widgets render correctly on the 2.x theme. Interactions were not tested.

@batpad
batpad merged commit e43f913 into main Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant