Skip to content

Commit

Permalink
Re-add useRootPaddingAwareAlignments to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 16, 2024
1 parent 704d8ae commit b313e3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/api-docs/gen-theme-reference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ const formatType = ( prop ) => {
const settings = themejson.definitions.settingsProperties.allOf.flatMap(
( settingsProperties ) => Object.entries( settingsProperties.properties )
);
// This property is only available at the root level, so it isn't included in the settingsProperties.
settings.unshift( [
'useRootPaddingAwareAlignments',
themejson.properties.settings.allOf[ 1 ].properties
.useRootPaddingAwareAlignments,
] );
autogen += '## Settings' + '\n\n';
settings.forEach( ( [ section, data ] ) => {
autogen += getSectionMarkup( section, data, 'settings' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ See [Developing with theme.json](/docs/how-to-guides/themes/global-settings-and-
## Settings


### useRootPaddingAwareAlignments

Enables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block.

Please note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately.


---

### appearanceTools

Setting that enables the following UI tools:
Expand Down

0 comments on commit b313e3b

Please sign in to comment.