Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update block supports documentation for WordPress 6.5 #59862

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

gaambo
Copy link
Contributor

@gaambo gaambo commented Mar 14, 2024

What?

Fixes #59735 by adding the new block supports do documentation. I've mostyl taken the descriptions from the block.json schema file and used the dev note. aspectRatio was already documented under dimensions.

Additionally:

  • fixes typos in new block supports block.json schema
  • applies correct formatting via prettier
  • correctly sorts block supports alphabetically

Why?

How?

I've got prettier configured as described here and hope that the formatting is correct. Prettier actually tries to add semicolons to all JSON code snippets (because their language is JS), but I removed them manually.
Running npm run lint:md:docs docs/reference-guides/block-api/block-supports.md now does not yield any errors. If you want to split the formatting into a separate PR, let me know.

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

gaambo added 2 commits March 14, 2024 11:10
# Conflicts:
#	docs/reference-guides/block-api/block-supports.md

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# interactive rebase in progress; onto 08f14e9
# Last command done (1 command done):
#    pick 7cef11a9792 WordPress#59735 add wp 6.5 block supports
# Next command to do (1 remaining command):
#    pick 49f7ce51882 block supports: fix formatting + consistency
# You are currently rebasing branch 'docs/block-supports-update-6.5' on '08f14e9896d'.
#
# Changes to be committed:
#	modified:   docs/reference-guides/block-api/block-supports.md
#	modified:   schemas/json/block.json
#
# Untracked files:
#	.vscode/launch.json
#	.vscode/settings.json
#
Copy link

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.

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

Co-authored-by: gaambo <[email protected]>
Co-authored-by: t-hamano <[email protected]>

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

Copy link
Member

@fabiankaegy fabiankaegy left a comment

Choose a reason for hiding this comment

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

thanks for taking care of this <3

@fabiankaegy fabiankaegy merged commit dd3937c into WordPress:trunk Mar 15, 2024
57 of 63 checks passed
@github-actions github-actions bot added this to the Gutenberg 18.0 milestone Mar 15, 2024
carstingaxion pushed a commit to carstingaxion/gutenberg that referenced this pull request Mar 27, 2024
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.

Docs: Add missing supports to "Block API Reference > Supports" page
2 participants