Skip to content

Docs: Add more details about possible values for block assets in block.json#44199

Merged
gziolo merged 1 commit into
trunkfrom
update/docs-metadata-block-assets
Sep 23, 2022
Merged

Docs: Add more details about possible values for block assets in block.json#44199
gziolo merged 1 commit into
trunkfrom
update/docs-metadata-block-assets

Conversation

@gziolo
Copy link
Copy Markdown
Member

@gziolo gziolo commented Sep 15, 2022

What?

Follow-up for #44155.

It tries to address the comment left by @ryanwelcher in #44155 (comment):

These are confusing for me. Can we use an array of file:./ references here or do the scripts/styles have to be registered elsewhere? I think we need to add some text somewhere that explains this.

How?

It adds similar messages that elaborate on what values can be passed with reference to the section that takes a deeper dive.

@gziolo gziolo self-assigned this Sep 15, 2022
@gziolo gziolo added [Type] Developer Documentation Documentation for developers [Feature] Block API API that allows to express the block paradigm. labels Sep 15, 2022
@gziolo
Copy link
Copy Markdown
Member Author

gziolo commented Sep 15, 2022

There is an article from explaining how to define styles, scripts, and other fields in block.json:

https://www.billerickson.net/building-acf-blocks-with-block-json/

It’s primarily for ACF Blocks plugin, but there is a lot of overlap.

@gziolo gziolo merged commit d32af8e into trunk Sep 23, 2022
@gziolo gziolo deleted the update/docs-metadata-block-assets branch September 23, 2022 08:51
@github-actions github-actions Bot added this to the Gutenberg 14.3 milestone Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Block API API that allows to express the block paradigm. [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant