Skip to content

docs: split the migration guide into one page per major version - #1361

Merged
kimpenhaus merged 2 commits into
mainfrom
docs/split-migration-guide
Dec 2, 2026
Merged

kimpenhaus merged 2 commits into
mainfrom
docs/split-migration-guide

Conversation

@kimpenhaus

@kimpenhaus kimpenhaus commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Overview (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.
  • One page per upgrade (v11.mdx … v15.mdx, sidebar label v14 → v15, newest first):
    • an "At a glance" table: change, package, how you notice it (build error / runtime error / behaviour change), and when you have to act
    • one section per breaking change: chips for package and impact, 1–2 sentences old → new, then Migration
    • several cases become a "Your setup → What to do" table, old/new code goes into synced tabs (groupId="migration-version"), and rare edge cases go into <details>
    • "New in vX" as a small table that links the topic page
  • The text was shortened following the docs rules. Internals were dropped, and every required action was kept. Facts the review found missing were restored.

Links and checks

  • URL: /docs/operator/help/migration stays the URL of the overview, so no redirect is needed.
  • Old anchors: #upgrading-from-vX-to-vY still work through <span id> markers in the overview table, so links in earlier release notes still land on the guide.
  • Release notes: they now link …/help/migration/v<major>.
  • Migration Guide check: a breaking PR must now change exactly the page of the next major version (latest stable release + 1, currently v16.mdx). The PR check script writes that path as an output, and both the check and the release notes take the path from release.base.mjs.
  • Docs components: Affects, Impact, Tabs and TabItem are registered globally through docs/src/theme/MDXComponents.js, so the pages need no imports. The chips use Infima's theme colours, which also adapt to dark mode.
  • Code in headings (site-wide, custom.css): no box, 85 % of the heading size, so headings such as `IEntityQueueFactory` removed no longer dominate the page.
  • Contributor docs: CONTRIBUTING and the contribution page describe the new rule. The first breaking change of a major version creates its page with sidebar_position: -<major> and adds a row to the overview.

Checks before the PR

  • /code-review: 7 findings, all fixed:
    • The check was too loose: it accepted any file in the folder. It now requires the exact page of the next major version.
    • Facts from the old guide were missing on v13 and v15 (removed status fields, fieldManager: Required value, cluster-scoped owners, the configureManifests overload, a second controller under custom strategies throws, EntityLoggingScope.CreateFor, splitting controllers on KOG001). They are restored.
    • The "Act if you …" column in the overview was incomplete.
    • The v12 intro did not mention the EntityQueue delegate.
    • The sidebar order now uses sidebar_position = -<major>, so new pages need no renumbering.
  • /simplify:
    • Applied: Infima variables instead of 12 hard-coded colours, global MDX components instead of imports on every page, a smaller component, and the guide path defined once in release.base.mjs.
    • Not applied: package and impact appear both in the table and as chips under the heading, and the overview repeats the "Act if you" content. Both are intentional, so readers can scan the page first and find the details later.
  • /security-review: no findings. The workflow keeps pull_request with read-only permissions, and the component uses no dangerouslySetInnerHTML.
  • Docs build: npm run build passes 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.
  • Release check: I ran node .release/check-pull-request.mjs locally. A breaking title outputs migration-guide=docs/docs/operator/help/migration/v16.mdx, a docs: title outputs no guide. semantic-release still loads only the default export of release.base.mjs.

No breaking changes.

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
kimpenhaus enabled auto-merge (squash) December 2, 2026 20:46
@kimpenhaus
kimpenhaus merged commit 0787274 into main Dec 2, 2026
7 of 9 checks passed
@kimpenhaus
kimpenhaus deleted the docs/split-migration-guide branch December 2, 2026 20:51
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`.
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.

1 participant