Repository navigation
docs: split the migration guide into one page per major version - #1361
Merged
Merged
Conversation
The single migration page grew with every major version and read as running text. Each upgrade now has its own page (help/migration/v11.mdx to v15.mdx) with an "At a glance" table (package, how the change shows up, who has to act), one short section per breaking change with a Migration step, v-old/v-new code tabs and collapsed edge cases. An overview page lists the upgrades and keeps the anchors of the former page, so links in earlier release notes still land on the guide. The release notes link the page of their major version, and the Migration Guide check requires a breaking PR to change the page of the next major version. Both take the page path from release.base.mjs.
Code in a heading reads as part of the title: no border or background, 85 % of the heading size. Applies to every docs page.
kimpenhaus
enabled auto-merge (squash)
December 2, 2026 20:46
kimpenhaus
added a commit
that referenced
this pull request
Dec 2, 2026
## Summary Infima, the CSS framework that Docusaurus ships, enlarges headings inside docs articles to 3rem for the title, 2rem for h2 and 1.5rem for h3. Next to the body text they dominate the page, especially in the dark theme, and more so since the split migration pages (#1361) have many h2 sections. | Level | Infima (≥ 577px) | New | | --- | --- | --- | | Page title (h1) | 3rem | 2.25rem | | h2 | 2rem | 1.6rem | | h3 | 1.5rem | 1.3rem | - Phones (≤ 576px) keep Infima's mobile sizes (2rem / 1.5rem / 1.25rem). - The title rule (`.plugin-docs header > h1:first-child`) also covers the generated category pages. They copy the 3rem title into their own CSS module class (`.title_*`), so `.markdown h1` does not reach them. - The rules only override Infima's `--ifm-hN-font-size` variables and use Infima's own selectors. They load after Infima and win by source order or specificity. ## Checks - `npm run build` passes, and the rules are in the bundle after Infima's. - Checked in the dev server on a doc page and on a generated category page. - `/code-review`: one finding, fixed. h2 and h3 grew on phones, because the overrides applied at every width. All rules are now in one `min-width: 577px` block. - `/simplify`: moved to Infima's selectors and the `plugin-docs` class on `<html>` instead of layout classes (`.main-wrapper main`), and put everything under one breakpoint instead of the sidebar breakpoint 997px. Nothing to fix for reuse or efficiency. - `/security-review`: no findings. The change is static CSS without `url()`, `@import`, attribute selectors or `content`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The migration guide was one page that grew with every major version (481 lines) and read as running text. This PR splits it into one page per upgrade and gives every page the same scannable structure.
help/migration/index.mdx): one table with each upgrade, its release date, what most operators have to do and when you have to act. It also has a short "Before you upgrade" checklist.v11.mdx…v15.mdx, sidebar labelv14 → v15, newest first):groupId="migration-version"), and rare edge cases go into<details>Links and checks
/docs/operator/help/migrationstays the URL of the overview, so no redirect is needed.#upgrading-from-vX-to-vYstill work through<span id>markers in the overview table, so links in earlier release notes still land on the guide.…/help/migration/v<major>.Migration Guidecheck: a breaking PR must now change exactly the page of the next major version (latest stable release + 1, currentlyv16.mdx). The PR check script writes that path as an output, and both the check and the release notes take the path fromrelease.base.mjs.Affects,Impact,TabsandTabItemare registered globally throughdocs/src/theme/MDXComponents.js, so the pages need no imports. The chips use Infima's theme colours, which also adapt to dark mode.custom.css): no box, 85 % of the heading size, so headings such as`IEntityQueueFactory` removedno longer dominate the page.sidebar_position: -<major>and adds a row to the overview.Checks before the PR
/code-review: 7 findings, all fixed:fieldManager: Required value, cluster-scoped owners, theconfigureManifestsoverload, a second controller under custom strategies throws,EntityLoggingScope.CreateFor, splitting controllers onKOG001). They are restored.EntityQueuedelegate.sidebar_position = -<major>, so new pages need no renumbering./simplify:release.base.mjs./security-review: no findings. The workflow keepspull_requestwith read-only permissions, and the component uses nodangerouslySetInnerHTML.npm run buildpasses without broken links or anchors. I checked the generated pages: all "At a glance" anchors resolve, the old anchors exist on the overview, and the sidebar order is v15 → v11.node .release/check-pull-request.mjslocally. A breaking title outputsmigration-guide=docs/docs/operator/help/migration/v16.mdx, adocs:title outputs no guide. semantic-release still loads only the default export ofrelease.base.mjs.No breaking changes.