Create Block: Add documentation for custom block namespace#70215
Create Block: Add documentation for custom block namespace#70215t-hamano merged 4 commits intoWordPress:trunkfrom
Conversation
|
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 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. |
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
ryanwelcher
left a comment
There was a problem hiding this comment.
LGTM! A nice addition to the docs. Thanks!
…#70215) * Add documentation for custom block namespace in `create-block` tool * Change section title from "Block Namespace" to "namespace" for consistency Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: mburridge <mburridge@git.wordpress.org> Co-authored-by: jonathanbossenger <psykro@git.wordpress.org> Co-authored-by: ryanwelcher <welcher@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
What?
Adds a brief section about block namespaces to the Create Block package documentation.
Closes: #42854
Why?
When using
@wordpress/create-block, the tool generates blocks with the defaultcreate-blocknamespace (e.g.,create-block/my-block). This causes issues because:How?
Added a concise "Block Namespace" section under Usage that:
create-blockis the default namespace--namespaceoption