Skip to content

docs: correct the user docs against what the theme actually does - #229

Merged
mmcky merged 3 commits into
mainfrom
claude/funny-meitner-i34zme-217-docs
Sep 12, 2026
Merged

docs: correct the user docs against what the theme actually does#229
mmcky merged 3 commits into
mainfrom
claude/funny-meitner-i34zme-217-docs

Conversation

@quantecon-services

@quantecon-services quantecon-services commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Addresses #217. Documentation only.

What I verified, and corrected

I checked every line in the issue's table against the code rather than taking the table's word for it. All six were wrong; here is what each actually is:

Line Said Verified behaviour
docs/layout.md header "the QuantEcon logo and site title…" No site title anywhere in the toolbar. Left: drawer toggle, a Home link to the site root, the QuantEcon logo (which links to quantecon.org, not home). Right: search, full-screen, font-size, dark mode, downloads, then compute/launch/language only when configured, plus a GitHub link. Home, font-size and GitHub were all unmentioned
docs/layout.md widths outline hidden below lg (1024px) .simple-center-grid > .col-margin is hidden xl:block, so 1280px
docs/dark-mode.md "the Sphinx sites' dark ground (#222)" #222 is this theme's ground (qepage-dark), but it was the book theme's before 0.18.0; the 0.22.0 the lecture repos pin is navy-charcoal. Now stated as the theme's own, with the palette named as an open design question (#187)
docs/configuration.md site.title is "the site name in the header" it feeds og:site_name and the page-title suffix; the header shows the project title
docs/notebooks.md "Long outputs are clipped with a scroll region" nothing limits output height — no max-height on any output rule. Now says so, and names QuantEcon/mystmd#106
docs/authors.md (silent) translators_label is the only translatable part — the names are joined in English (", " / " and ") on every edition, RTL included

docs/index.md now points its no-counterpart promise at the migration page's table and no longer presents PLAN.md as the live record.

Two criteria I could not satisfy, and why

I'd rather flag these than pretend:

  1. "README's pinned vX.Y.Z URLs name the release that closes the gate." That release does not exist — it is cut after these PRs merge. The URLs still say v2.7.0. This needs a follow-up commit once you know the version, or folding into the release-prep PR.
  2. "Every documentation line named in a closed gate item's acceptance criteria is confirmed updated." This was written while no gate item had closed. Since then Decide how the CC BY-SA licence footer survives the cutover: a theme default or a per-repo footer.md #203Lecture repos moving off the Sphinx theme have no checklist of what myst.yml and CI must now set #209 have all closed, so the criterion is now checkable, and it has been checked against main:
Item Documentation line On main
#203 docs/layout.md documents the default footer yes (#221)
#204 docs/migrating.md "Lecture sources" names the rewrite script yes (#226)
#205 docs/launch.md, docs/configuration.md and README name launch_notebook_repo / launch_colab yes, all three (#224)
#206 any page stating that output images are centred no — this PR adds it
#207 docs/configuration.md and README describe the canonical link yes (#227)
#208 docs/layout.md documents h4 in the outline yes (#228)
#209 docs/migrating.md exists and is indexed yes (#226)

So six of the seven landed with their own PR, and the seventh was a real gap: #225 shipped output-image centring with no documentation at all, and docs/notebooks.md here is what closes it. That is worth knowing rather than assuming each PR documented itself.

So this PR is the docs review's substance, not its sign-off.

Merged with main

Seven PRs landed [Unreleased] entries while this was open. This branch adds a ### Fixed entry, so it folds into the Fixed section main already had (output image centring, base-URL head links) rather than opening a second one. Merged at 043b92ada.

docs/configuration.md, docs/index.md and docs/layout.md auto-merged, and each was verified rather than assumed: layout.md holds this branch's Header and Widths rewrites beside #228's h2-to-h4 outline text and #221's default-footer section; index.md holds #226's Pages-table row beside the closing paragraph this PR owns; configuration.md holds the rows from all four PRs that touched its table.

Review

Copilot raised two comments, both addressed.

  • The overflow-menu sentence was wrong, which is the right thing to catch in a PR about docs accuracy. MobileActionsMenu renders only DownloadsButton, LaunchButton and GitHubButton, while the full-screen toggle (Toolbar.tsx:66-67) and FontScaleListItems (69) are hidden md:block with no overflow counterpart — so all five controls leave the toolbar below md, but only three reappear. Corrected in 788d44ffd.
  • The changelog entry now carries its PR link (043b92ada). That comment scoped its claim to the [2.7.0] section, which is accurate: 10 entries there, all 10 ending with a pull/ link.

The other five corrections in this PR were re-checked independently against the code and all hold: no site title in the toolbar; the outline appearing from 1280px (hidden xl:block); site.title feeding og:site_name and the title suffix while the header uses projectTitle; nothing limiting output height (the only max-height in quantecon.css belongs to .qe-outline, not an output rule); and translator names joined in English on every edition (PeopleList hardcodes ' and ' and ', ' with no locale argument).

Ordering

Several of these touch files the other gate PRs also touch:

Merge before #218. The code PRs it had to follow — #221, #222, #224, #225, #226, #227 and #228 — have all merged, and main is merged in here (see below), so that ordering constraint is satisfied.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UZLpDVYu1YBZHQfwkRRJj7


Generated by Claude Code

Six documented behaviours the theme does not have, found by the #147
review and verified against the code here:

- the toolbar has no site title, and the Home link, the font-size
  control and the GitHub link went unmentioned;
- the "On this page" outline appears from 1280px, not below `lg`
  (1024px): `.simple-center-grid > .col-margin` is `hidden xl:block`;
- `#222` is this theme's dark ground, but it was the book theme's
  before 0.22.0, and the release the lecture repositories pin has a
  navy-charcoal palette. Which palette to use is an open design
  question, so the page no longer presents the two as matching;
- `site.title` feeds `og:site_name` and the page-title suffix; the
  header shows the project title;
- nothing limits an output's height, so a long output renders at full
  length -- the Sphinx scroll-output cell tags have no effect yet;
- only `translators_label` is translatable: the names themselves are
  joined in English on every edition, right-to-left ones included.

`docs/index.md` now points its no-counterpart promise at the migration
page's table, and no longer presents PLAN.md as the live record.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UZLpDVYu1YBZHQfwkRRJj7
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-12 04:00 UTC

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

🎭 Visual regression results

passed  48 passed
skipped  15 skipped

Details

stats  63 tests across 2 suites
duration  1 minute, 40 seconds
commit  788d44f

Skipped tests

mobile-chrome › theme.spec.ts › QuantEcon theme — visual regression › without JavaScript › drawer-opens-without-javascript
mobile-chrome › theme.spec.ts › QuantEcon theme — visual regression › drawer-closes-when-search-opens
mobile-chrome › theme.spec.ts › QuantEcon theme — visual regression › launch-colab
mobile-chrome › theme.spec.ts › QuantEcon theme — visual regression › live-compute-toggle
mobile-chrome › theme.spec.ts › QuantEcon theme — visual regression › live-compute-toggle-absent-without-thebe
mobile-chrome › theme.spec.ts › On this page outline › outline-pinned-and-nested
mobile-chrome › theme.spec.ts › On this page outline › outline-tracks-scroll
mobile-chrome › theme.spec.ts › On this page outline › outline-unnumbered
mobile-chrome › theme.spec.ts › On this page outline › outline-within-viewport
mobile-chrome › theme.spec.ts › Meta/SEO and notebook output › social-meta
mobile-chrome › theme.spec.ts › Meta/SEO and notebook output › no-canonical-without-site-url
mobile-chrome › theme.spec.ts › Meta/SEO and notebook output › stderr-collapsed
mobile-chrome › theme.spec.ts › Site options reach the theme › site-options
mobile-chrome › theme.spec.ts › Site footer › default-footer-without-part
mobile-chrome › theme.spec.ts › Site footer › declared-part-replaces-default

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.

🟡 Changes recommended

The docs/layout.md Header section incorrectly claims the full-screen and font-size controls move into the mobile overflow menu, when the code hides them below md and only downloads/launch/GitHub move to the overflow.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This documentation-only PR (addressing #217) corrects several docs/ pages so they describe what the theme actually does rather than legacy/assumed behaviour. I verified each corrected claim against the code, and all but one hold up.

Changes:

  • Rewrites the docs/layout.md Header and Widths sections (toolbar contents, no site title, outline appears from 1280px) and corrects docs/dark-mode.md, docs/configuration.md, docs/notebooks.md, and docs/authors.md.
  • Repoints docs/index.md's "no-counterpart" promise at the migration page's table and drops the PLAN.md reference.
  • Adds a ### Fixed CHANGELOG entry under [Unreleased].
File summaries
File Description
docs/layout.md Rewrites Header (toolbar controls, no site title, overflow menu) and Widths (1280px outline breakpoint) — overflow-menu sentence is inaccurate
docs/dark-mode.md Reframes #222 as the theme's own ground with palette provenance and open design question (#187) — matches qepage-dark
docs/configuration.md Corrects site.title to feed og:site_name + title suffix, not the header — matches seo.ts/ProjectFrontmatter
docs/notebooks.md States nothing limits output height and images centre while tables stay left — no output max-height exists
docs/authors.md Notes translator names are joined in English on every edition — matches PeopleList
docs/index.md Points no-counterpart promise at migrating.md (file added by #226)
CHANGELOG.md Adds ### Fixed entry; missing the customary PR link
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Balanced

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

Comment thread CHANGELOG.md Outdated
not the header), and notebook output height (nothing clips a long output).
`docs/authors.md` now says the translator names are joined in English on
every edition
([#217](https://github.com/QuantEcon/quantecon-theme.mystmd/issues/217)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added the PR link in 043b92a — the entry now ends ([#217](…/issues/217)) ([#229](…/pull/229)).

Worth saying that this one is argued accurately, which has not always been true of this comment on other PRs: scoping the claim to the [2.7.0] section is exactly right. I counted that section — 10 entries, all 10 ending with a pull/ link, none issue-only. Across the whole file the practice is mixed (ten entries carry only an issue link, spread over five released versions), so 2.7.0 is the defensible frame to cite, and CONTRIBUTING.md:227 settles it regardless.

That same commit merges main, which gained seven [Unreleased] entries while this was open. The ### Fixed entry here folds into the Fixed section main already had, rather than opening a second one.

Comment thread docs/layout.md Outdated
mmcky and others added 2 commits September 12, 2026 13:50
#221, #222, #224, #225, #226, #227 and #228 all landed `[Unreleased]`
entries while this was open. This branch adds a `### Fixed` entry, so it
folds into main's existing Fixed section (output image centring, base-URL
head links) rather than opening a second one, and it gains its PR link
beside the issue link per CONTRIBUTING.md:225-227.

`docs/configuration.md`, `docs/index.md` and `docs/layout.md` auto-merged,
and each was checked rather than assumed: layout.md holds this branch's
Header and Widths rewrites beside #228's h2-to-h4 outline text and #221's
default-footer section; index.md holds #226's Pages-table row beside this
branch's rewritten closing paragraph; configuration.md holds the rows from
all four PRs that touched its table.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Header section said the full-screen toggle, the font-size control,
downloads, launch and GitHub all move into an overflow menu below `md`.
`MobileActionsMenu` renders only `DownloadsButton`, `LaunchButton` and
`GitHubButton`; the full-screen toggle and `FontScaleListItems` are
`hidden md:block` in `Toolbar.tsx` with no overflow counterpart. So all
five leave the toolbar at that width, but only three reappear -- the other
two are simply unavailable, which is what the section now says.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mmcky
mmcky merged commit 91273b6 into main Sep 12, 2026
4 checks passed
@mmcky
mmcky deleted the claude/funny-meitner-i34zme-217-docs branch September 12, 2026 04:00
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.

4 participants