Skip to content

Remove the stale duplicated frontmatter block from hoist_failure.md - #265

Open
mmcky wants to merge 1 commit into
mainfrom
fix/hoist-failure-stale-frontmatter
Open

Remove the stale duplicated frontmatter block from hoist_failure.md#265
mmcky wants to merge 1 commit into
mainfrom
fix/hoist-failure-stale-frontmatter

Conversation

@mmcky

@mmcky mmcky commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The strict cache build (run 32426519586) executed every notebook — including learning_approximation after #262 — and then failed on a single -W warning: hoist_failure.md:34: Document headings start at H2, not H1.

Cause: the #260 resync left the previous frontmatter body in place below the new frontmatter (lines 32–58 on main: a bare jupytext:translation: block closed by ---), so Sphinx sees leading content ahead of the {raw} header and the H1. The preview build on #260 tolerated it as a warning, which is the same preview-vs-strict-build gap that let the _fonts/ path through.

This removes only the duplicated 25-line block; the engine's frontmatter (which carries the fuller nested heading map) and the lecture body are untouched. Once merged, a cache run should go green and the publish tag can follow with mccall_risk (#264) included.

This is a second instance of an engine resync shipping an embedded-frontmatter defect; noted for QuantEcon/action-translation (the forward path has an embedded-frontmatter check, so the question is why it did not fire here).

The #260 resync left the previous frontmatter body in place below the new frontmatter, as text ahead of the {raw} header. Sphinx then reports 'Document headings start at H2, not H1' and the strict -W cache build fails (run 32426519586), which blocks the next publish tag. Only the duplicated block is removed; the engine's frontmatter and the lecture body are unchanged.
Copilot AI lite review requested due to automatic review settings August 21, 2026 00:40
@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit a168c45
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a879e67f2f572000876f975
😎 Deploy Preview https://deploy-preview-265--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Pull request overview

This PR fixes a strict-build Sphinx warning in lectures/hoist_failure.md by removing a stale, duplicated frontmatter block left behind by an earlier resync, ensuring the document’s H1 heading is correctly recognized.

Changes:

  • Removed the duplicated embedded frontmatter (jupytext: / kernelspec: / translation:---) that appeared after the real YAML frontmatter.
  • Restored the intended document structure so the {raw} header and # H1 are no longer preceded by stray frontmatter content.

💡 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

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