-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 for Template Block attributes #6190
Comments
One thing we'd like to see is if there's a way to use a parser to document block attributes, because the workload of keeping these up to date over time would be really challenging. Any way we can explore that option? |
We can automate it the way we are doing for documenting |
Now that almost all blocks contain @nosolosw, is that something |
@gziolo There are parts of |
@gziolo is there a reason not all blocks contain a |
There is no support for loading |
What can we do to move this forward? |
@youknowriad's BlockBook is meant to cover the need of listing block attributes and their effect. There's a proposal to integrate it in the main project in #24152. Ideally we'd also run a public instance of it in the block directory or integrate this information there somehow. |
Closed in #36183 |
Issue Overview
In the template documentation there is no information what attributes can be used for the different blocks.
https://wordpress.org/gutenberg/handbook/templates/
Possible Solution
The attributes can be found in the
index.js
of the the single blocks which can be found in https://github.com/WordPress/gutenberg/blob/master/blocks/library/The path for the
index.js
would https://github.com/WordPress/gutenberg/blob/{block-name}/index.jsThe current attributes for the paragraph block currently are
which can be found here: https://github.com/WordPress/gutenberg/blob/v2.6.0/blocks/library/paragraph/index.js#L139-L145
Todos
The text was updated successfully, but these errors were encountered: