Skip to content

Docs: Fix stale, incorrect, or missing documentation#78686

Open
sirreal wants to merge 25 commits into
trunkfrom
docs-fix-scaled-integration
Open

Docs: Fix stale, incorrect, or missing documentation#78686
sirreal wants to merge 25 commits into
trunkfrom
docs-fix-scaled-integration

Conversation

@sirreal
Copy link
Copy Markdown
Member

@sirreal sirreal commented May 26, 2026

What?

Update documentation across the project where docs were found to be stale, incorrect, or otherwise lacking.

Use of AI Tools

Claude was used to analyze the state of documentation and make updates and corrections.

@sirreal sirreal added the [Type] Developer Documentation Documentation for developers label May 26, 2026
Comment on lines 38 to +60
@@ -48,6 +52,12 @@ New styles options are integrated into theme.json on a regular basis. Knowing th
| `spacing.margin.left` | 5.8 | 5.9 |
| `spacing.margin.bottom` | 5.8 | 5.9 |
| `spacing.blockGap` | 5.9 | 5.9 |
| `background.backgroundAttachment` | 6.6 | 6.6 |
| `background.backgroundImage` | 6.6 | 6.5 |
| `background.backgroundPosition` | 6.6 | 6.6 |
| `background.backgroundRepeat` | 6.6 | 6.6 |
| `background.backgroundSize` | 6.6 | 6.6 |
| `dimensions.aspectRatio` | 6.6 | 6.6 |
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These require careful review for correctness.

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.

Maybe @andrewserong or @aaronrobertshaw can help here?

Comment thread docs/reference-guides/theme-json-reference/styles-versions.md
Copy link
Copy Markdown
Contributor

Copilot AI commented May 26, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • translate.wordpress.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node i18n-cache/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@sirreal sirreal marked this pull request as ready for review May 26, 2026 14:39
@sirreal sirreal force-pushed the docs-fix-scaled-integration branch from 93372e1 to e6ac37f Compare May 26, 2026 14:39
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @Copilot.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: Copilot.

Co-authored-by: sirreal <jonsurrell@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

| [no-dom-globals-in-module-scope](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-module-scope.md) | Disallow use of DOM globals in module scope. | |
| [no-dom-globals-in-react-cc-render](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-react-cc-render.md) | Disallow use of DOM globals in React class component render methods. | |
| [no-dom-globals-in-react-fc](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-react-fc.md) | Disallow use of DOM globals in the render cycle of a React function component. | |
| [no-ds-tokens](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-ds-tokens.md) | Disallow any usage of `--wpds-*` CSS custom properties. | |
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@mirka or @ciampo - are these rules OK to add to the eslint-plugin readme?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like I didn't include it in the readme because tokens were not yet public at the time (#75872), but it's fine now 👍 Thanks.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This docs-only PR refreshes stale documentation across Gutenberg references, tutorials, package READMEs, and contributor guides.

Changes:

  • Updates stale links, command names, imports, and code examples.
  • Adds missing references for newer block/theme.json settings and ESLint rules.
  • Corrects documentation examples for filters, InnerBlocks JSX, block transforms, and private APIs.

Reviewed changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/eslint-plugin/README.md Adds recently introduced ESLint rules to the rules table.
packages/create-block/README.md Updates the default create-block template name.
packages/babel-preset-default/README.md Updates the example Babel plugin.
docs/reference-guides/theme-json-reference/styles-versions.md Adds newer theme.json style properties and versions.
docs/reference-guides/interactivity-api/directives-and-store.md Clarifies the planned WordPress 7.0 behavior change.
docs/reference-guides/interactivity-api/core-concepts/server-side-rendering.md Fixes object syntax in a store example.
docs/reference-guides/filters/block-filters.md Updates render block filter examples to accept three args.
docs/reference-guides/block-api/block-transforms.md Fixes JavaScript syntax in transform examples.
docs/reference-guides/block-api/block-supports.md Adds dimensions aspect ratio support and fixes example commas.
docs/reference-guides/block-api/block-edit-save.md Adjusts a save example variable declaration.
docs/reference-guides/block-api/block-context.md Adds a missing i18n import to an example.
docs/reference-guides/block-api/block-bindings.md Updates the supported-attribute extension example.
docs/reference-guides/block-api/block-attributes.md Fixes key-concepts anchor links.
docs/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility.md Updates iframe-editor conditions and compose imports.
docs/private-apis.md Updates listed private block-editor exports.
docs/how-to-guides/themes/theme-support.md Refreshes appearance-tools coverage.
docs/how-to-guides/metabox.md Fixes the plugin sidebar tutorial link.
docs/how-to-guides/block-tutorial/nested-blocks-inner-blocks.md Fixes JSX comment syntax.
docs/explanations/architecture/styles.md Updates useSetting reference to useSettings.
docs/explanations/architecture/performance.md Updates performance test paths.
docs/contributors/folder-structure.md Corrects the lib/compat directory name.
docs/contributors/code/release/plugin-release.md Updates the cherry-pick npm script name.
docs/contributors/code/managing-packages.md Fixes the release process anchor link.
docs/contributors/code/coding-guidelines.md Updates the private settings file path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +129 to +130
| [no-global-active-element](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-global-active-element.md) | Disallow accessing the active element via `document.activeElement`. | ✓ |
| [no-global-get-selection](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-global-get-selection.md) | Disallow accessing the selection via `window.getSelection`. | ✓ |
{
"presets": [ "@wordpress/babel-preset-default" ],
"plugins": [ "@babel/plugin-transform-class-properties" ]
"plugins": [ "@babel/plugin-proposal-decorators" ]
@github-actions
Copy link
Copy Markdown

Flaky tests detected in e6ac37f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26455140479
📝 Reported issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants