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

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

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

gziolo
Copy link
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
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