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

[Documentation]: Add more info about contextual patterns and pattern transformations #38809

Merged
merged 3 commits into from
Feb 15, 2022

Conversation

ntsekouras
Copy link
Contributor

This is a follow up of #38778 and tries to bring a bit more clarity on patterns blockType property and pattern transformations.

I mention here the pattern transformations for simple blocks(no inner blocks) but this is actually implemented with __experimentalRole: 'content' for simple core blocks.

@ntsekouras ntsekouras added [Type] Developer Documentation Documentation for developers [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Feb 15, 2022
@ntsekouras ntsekouras self-assigned this Feb 15, 2022
@@ -14,7 +14,7 @@ In this Document:

The editor comes with several core block patterns. Theme and plugin authors can register additional custom block patterns using the `register_block_pattern` helper function.

The `register_block_pattern` helper function receives two arguments.
The `register_block_pattern` helper function receives two arguments.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are some auto formatting changes that removed some extra spaces like this one. The main changes are in blockTypes and contextual patterns sections

docs/reference-guides/block-api/block-patterns.md Outdated Show resolved Hide resolved
docs/reference-guides/block-api/block-patterns.md Outdated Show resolved Hide resolved
ntsekouras and others added 2 commits February 15, 2022 15:17
@ntsekouras ntsekouras merged commit 7cb61f9 into trunk Feb 15, 2022
@ntsekouras ntsekouras deleted the docs/pattern-blocktypes branch February 15, 2022 16:54
@github-actions github-actions bot added this to the Gutenberg 12.7 milestone Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants