Docs: Fix stale, incorrect, or missing documentation#78686
Conversation
| @@ -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 | | |||
There was a problem hiding this comment.
These require careful review for correctness.
There was a problem hiding this comment.
Maybe @andrewserong or @aaronrobertshaw can help here?
|
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:
If you need me to access, download, or install something from one of these locations, you can either:
|
93372e1 to
e6ac37f
Compare
|
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 Unlinked AccountsThe 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. 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. | | |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| | [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" ] |
|
Flaky tests detected in e6ac37f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26455140479
|
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.