Skip to content

build-lectures: a Jupyter Book 2 engine, after #337 #361

Backlog

Description

@mmcky

A future enhancement. #337 proposes an engine input for build-lectures. Its default, jb1, runs today's jb build, and mystmd runs mystmd's own CLI, myst build. The issue's body says myst; the maintainer has since named the value mystmd, as recorded there. Jupyter Book 2 is built on mystmd and reads the same myst.yml, but it has its own command line, jupyter book, and it bundles its own mystmd: its package describes itself as "an opinionated distribution of mystmd". The maintainer wants it supported later, as a value of its own (2026-11-28).

Why it isn't in #337. QuantEcon's mystmd builds run myst build from a mystmd they build themselves: QuantEcon/test-lecture-theme-mystmd's CI builds it from the QuantEcon/mystmd fork at a pinned commit. A Jupyter Book 2 engine would run the mystmd Jupyter Book 2 bundles, not the fork. The fork also has things upstream lacks, such as myst build --ipynb. So mystmd comes first, and Jupyter Book 2 follows when a site needs it.

Proposal. Once #337 has shipped, add an engine value for Jupyter Book 2. The action runs jupyter book build with the builder's flag, from the folder that holds myst.yml, and applies the mystmd engine's checks where they carry over. The chapter says which apply. One pull request, with a harness job, a CHANGELOG entry and a staged release.

To settle when it's taken up.

  • The value's name. jb2 is the natural choice beside jb1. But at QuantEcon "jb2" has also named the experimental mystmd-fork builds: lecture-python-programming's jb2 branch, and test-lecture-theme-mystmd's "experimental jb2 build". So the name should be one nobody can read as the fork.
  • How it reaches the runner. Jupyter Book 1 and 2 are the same PyPI package, jupyter-book, and both images pin it below 2. So Jupyter Book 2 can't share an environment with jb1: it would come from the caller, an image of its own, or the action from a pin.
  • Shared checks. Whether it and mystmd can share the action's checks and its output layout.

Claude Code (on behalf of mmcky)

Activity

  1. added
    enhancement
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions