From b313e3b66bb330e9131aef34099898600a78692e Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Mon, 15 Jul 2024 23:27:04 -0500 Subject: [PATCH] Re-add useRootPaddingAwareAlignments to the docs --- bin/api-docs/gen-theme-reference.mjs | 6 ++++++ .../theme-json-reference/theme-json-living.md | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/bin/api-docs/gen-theme-reference.mjs b/bin/api-docs/gen-theme-reference.mjs index fd558de734d63d..b654f22875a20b 100644 --- a/bin/api-docs/gen-theme-reference.mjs +++ b/bin/api-docs/gen-theme-reference.mjs @@ -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' ); diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index 4d6ac06f6a0a46..d741f0d241b629 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -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: