Skip to content

Renumber Job Search VI-X, and point baseurl at the live site - #273

Merged
mmcky merged 1 commit into
mainfrom
fix/job-search-renumbering-and-baseurl
Aug 24, 2026
Merged

Renumber Job Search VI-X, and point baseurl at the live site#273
mmcky merged 1 commit into
mainfrom
fix/job-search-renumbering-and-baseurl

Conversation

@mmcky

@mmcky mmcky commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Two independent fixes, bundled because each takes effect only at the next publish build and that build is imminent — the re-publish that #270 requires. Splitting them would cost a second full CI render for one changed line.

1. Job Search renumbering — refs #266

Upstream inserted Job Search V and shifted five siblings. Those shifts were in the auto-closed #242 and never arrived by another route, so seeding mccall_risk as V in #264 turned a latent gap into an active collision: mccall_risk and mccall_persist_trans both read 工作搜寻 V, and everything after ran one behind.

Each numeral now matches the English source verbatim, checked file by file against QuantEcon/lecture-python.myst:

Lecture Before After English source
mccall_persist_trans V VI Job Search VI
career VI VII Job Search VII
jv VII VIII Job Search VIII
odu VIII IX Job Search IX
mccall_q IX X Job Search X

Eleven lines in five files: each lecture's # heading and its translation.title, plus the English half of jv's {index} target, which also read VII and would otherwise have left the index entry pointing at the old numeral.

Job Search I–IV are deliberately untouched. They sit before the insertion point, so the two in-prose cross-references in mccall_persist_trans — to 工作搜寻 III and 工作搜寻 IV — are still correct and were left alone. After this change the series reads I through X with no duplicate and no gap; a full-corpus sweep for 工作搜寻 <numeral> and Job Search <numeral> confirms it.

This is only a partial delivery of #266 (issue deliberately left open), which also carries the two refactor backports (ak_aiyagari from myst#706, harrison_kreps from myst#669) and the likelihood_bayes state-file refresh. Those touch code cells, so they belong in their own change with its own execution run.

2. Baseurl — refs QuantEcon/project-translation#20

lectures/_config.yml set html.baseurl to python.quantecon-zh-cn.org, which is NXDOMAIN; gh api repos/QuantEcon/lecture-python.zh-cn/pages returns cname: null, so no custom domain has ever been configured. The site serves from quantecon.github.io/lecture-python.zh-cn.

It reached published output only through two <head> tags — rel=canonical and og:url — 296 of them across 148 of the 159 published HTML files. No reader was ever affected: navigation, assets and inter-lecture links are all relative or point at live hosts. What it did was tell every search engine that those 148 pages authoritatively live on a host with no DNS record. The other five editions already point at their quantecon.github.io URL; this brings the sixth into line, per the ruling on that issue.

The line dates to 387e084, 2025-01-15 — not a regression, just never noticed.

Scope and risk

Prose and configuration only. No code cell changes, so the execution cache is untouched and this needs no new cache run to publish correctly — only the HTML rebuild that a publish does anyway.

What this does and does not fix on the live site

The two lectures currently share both a Roman numeral and a chapter number, from unrelated causes. This PR fixes the numeral. The duplicated chapter number 57. is the stale Sphinx environment in #270, fixed by #272. Both must land before the re-publish for those pages to read correctly.

🤖 Generated with Claude Code

Two independent fixes, bundled because both take effect only at the next
publish build and that build is imminent.

Job Search renumbering. Upstream inserted Job Search V and shifted five
siblings; the shifts were lost with the auto-closed #242 and never arrived
by another route. Seeding mccall_risk as V in #264 turned that into an
active collision: mccall_risk and mccall_persist_trans both read
工作搜寻 V. Shift the five, matching the English source verbatim —
mccall_persist_trans V→VI, career VI→VII, jv VII→VIII, odu VIII→IX,
mccall_q IX→X — in each file's H1 and its translation.title, plus the
English half of jv's {index} target, which also read VII.

References to Job Search I-IV are deliberately untouched: they sit before
the insertion point, so the two in-prose cross-references in
mccall_persist_trans (III and IV) remain correct.

Baseurl. lectures/_config.yml pointed html.baseurl at
python.quantecon-zh-cn.org, which is NXDOMAIN and has never been
configured as a Pages custom domain. It reached published output only as
rel=canonical and og:url, so no reader was affected, but it told search
engines that 148 pages live on a host with no DNS record. Point it at the
site that actually serves, matching the other five editions.

Prose and config only; no code cell changes, so the execution cache is
unaffected.

Refs #266 (the two refactor backports and the likelihood_bayes state
refresh remain open there), #270, and QuantEcon/project-translation#20.
Renumbering source: QuantEcon/lecture-python.myst#760

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

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit b03c3ed
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a8c17d382ff95000889237c
😎 Deploy Preview https://deploy-preview-273--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 bundles two publish-time content fixes for the zh-cn lecture site: (1) renumber the Job Search lecture headings/titles to match the upstream English sequence after the insertion of “Job Search V”, and (2) update the Jupyter Book html.baseurl to the actual live GitHub Pages URL so canonical/OG URLs are correct.

Changes:

  • Renumber Job Search lecture translation.title and H1 headings from V–IX to VI–X across five affected lectures.
  • Update the jv lecture’s {index} heading target to the new numeral so the index entry matches the updated title.
  • Point lectures/_config.yml html.baseurl to https://quantecon.github.io/lecture-python.zh-cn/.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lectures/mccall_persist_trans.md Update translation.title and H1 to Job Search VI (工作搜寻 VI)
lectures/career.md Update translation.title and H1 to Job Search VII (工作搜寻 VII)
lectures/jv.md Update translation.title and indexed H1 to Job Search VIII (工作搜寻 VIII / Job Search VIII)
lectures/odu.md Update translation.title and H1 to Job Search IX (工作搜寻 IX)
lectures/mccall_q.md Update translation.title and H1 to Job Search X (工作搜寻 X)
lectures/_config.yml Update html.baseurl to the live GitHub Pages site URL

💡 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

@github-actions
github-actions Bot temporarily deployed to pull request August 24, 2026 11:17 Inactive
@mmcky
mmcky merged commit 6a4b427 into main Aug 24, 2026
8 checks passed
@mmcky
mmcky deleted the fix/job-search-renumbering-and-baseurl branch August 24, 2026 11:18
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