Skip to content

chore: take theme v3.0.0 - #78

Merged
mmcky merged 1 commit into
mainfrom
chore/theme-v3.0.0
Sep 12, 2026
Merged

chore: take theme v3.0.0#78
mmcky merged 1 commit into
mainfrom
chore/theme-v3.0.0

Conversation

@mmcky

@mmcky mmcky commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Takes theme v3.0.0, the release that closes the book-theme parity gate.

What changes on the site

The dead Launch button disappears It linked to QuantEcon/lecture-wasm.notebooks, which does not exist. v3.0.0 makes Launch opt-in and derives nothing from project.github, so leaving the options unset is what removes it.
The licence footer appears The CC BY-SA notice and the QuantEcon credit are now theme defaults. This repo declares no footer part, so it gains them without configuration.
Canonical links and og:url New site_url enables them, plus an absolute og:image. This site is served under a sub-path, and v3.0.0 is the release that made the favicon and myst-theme.css links base-URL aware, so those stop resolving to the domain root.
short_path.md loses a block of literal markup Its {raw} jupyter header was rendering as escaped HTML under the page title, because mystmd renders no raw node.

The two config lines

site.options.site_url is set to https://quantecon.github.io/lecture-wasm/, confirmed against the Pages API rather than assumed.

No launch_* options are set, and the file says why — so that a later reader does not "fix" the missing Launch control by pointing it at a notebooks repository that has never existed.

Reviewing the preview: the canonical link looks wrong there, and that is expected

The deploy preview emits <link rel="canonical" href="https://quantecon.github.io/short-path/">without the /lecture-wasm/ segment. That is an artefact of how previews are built, not a defect in this change.

The theme reduces site_url to an origin (there is a unit test asserting exactly that), so the sub-path is expected to come from BASE_URL at build time rather than from the option. And ci.yml sets BASE_URL only on the GitHub Pages build — line 65, on push to main. The PR-preview build immediately below it omits BASE_URL deliberately, because the preview is served at a domain root. So the preview's canonical carries the production origin without the production sub-path.

On main the same page emits https://quantecon.github.io/lecture-wasm/short-path/.

A consequence worth noting on its own: because the preview never sets BASE_URL, it does not exercise the sub-path code paths at all — including the base-URL-aware favicon and myst-theme.css links this release brings. Those are validated by the production build rather than by this preview.

What the preview does confirm

Checked against the rendered short-path page rather than inferred from the config: the {raw} notebook-header block is gone, the theme's default footer renders with the inline CC badge, the licence sentence and the "A theme by QuantEcon" credit, and there is no Launch control — no Colab link, no lecture-wasm.notebooks reference, no "Launch notebook" label anywhere.

Also worth recording for whoever merges: the failing netlify/… checks on this PR are pre-existing, not caused by this change. The same three Netlify checks fail on #74, #75 and #77. The GitHub Actions build-and-deploy job — the one that actually produces and deploys the preview — passes, as does data-url-guard.

The source change

lectures/short_path.md was rewritten by the theme repo's scripts/rewrite-raw-blocks.mjs, which is shipped in v3.0.0 for exactly this migration. It deletes the header block and nothing else; it exits non-zero and writes nothing if it meets a {raw} block it does not recognise, and it met none here. It was the only file in the repo carrying one.

🤖 Generated with Claude Code

The Launch control is opt-in from v3.0.0 and nothing is derived from
`project.github` any more, so this bump alone removes the dead Launch
button: it pointed at QuantEcon/lecture-wasm.notebooks, which does not
exist. No launch options are set here, and a comment records that this is
deliberate rather than an omission.

`site_url` is new. The theme emits the canonical link, `og:url` and an
absolute `og:image` only when it is set, and this site is served under a
sub-path -- which is exactly the case v3.0.0's base-URL work addresses, so
the value carries the sub-path.

The licence footer now comes from the theme by default. This repo declares
no footer part, so it gains the CC BY-SA notice and the QuantEcon credit
with no configuration at all.

`short_path.md` loses its `{raw} jupyter` notebook-header block, rewritten
out by the theme repo's `scripts/rewrite-raw-blocks.mjs`: mystmd renders no
`raw` node, so that block's own source was reaching readers as escaped text
under the page title.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 12, 2026 04:51
@netlify

netlify Bot commented Sep 12, 2026

Copy link
Copy Markdown

Deploy Preview for beautiful-dodol-cb9543 failed.

Name Link
🔨 Latest commit bc264c6
🔍 Latest deploy log https://app.netlify.com/projects/beautiful-dodol-cb9543/deploys/6aa4da3d51a94e000835add0

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Changes are small, consistent with the theme v3.0.0 migration expectations, and the updated config/content appears valid and intentional.

Pull request overview

Updates the lecture site to QuantEcon’s Myst theme v3.0.0 and applies the associated migration cleanups needed for parity and correct behavior when the site is served from a GitHub Pages sub-path.

Changes:

  • Bump pinned theme asset from v2.7.0 to v3.0.0.
  • Configure site.options.site_url so canonical/OG URLs and base-URL-aware assets resolve correctly under /lecture-wasm/.
  • Remove a Sphinx {raw} HTML header block from short_path.md that mystmd does not render as intended.
File summaries
File Description
lectures/short_path.md Removes the {raw} HTML notebook header block so mystmd no longer shows escaped raw content under the title.
lectures/myst.yml Pins theme to v3.0.0 and sets site_url while intentionally leaving Launch options unset to avoid dead links.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-78--beautiful-dodol-cb9543.netlify.app (bc264c6)

✨ Browse the preview at the URL above.

@mmcky
mmcky merged commit 61e8660 into main Sep 12, 2026
3 of 7 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.

2 participants