Skip to content

Commit

Permalink
Lowercase settings and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 17, 2024
1 parent 45a24a5 commit 1e12e62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/api-docs/gen-theme-reference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function generateDocs( themejson ) {
/* --------------- *
* Settings *
* --------------- */
autogen += '## Settings\n\n';
autogen += '## settings\n\n';
autogen += `${ themejson.properties.settings.description }\n\n`;
const settings = themejson.definitions.settingsProperties.allOf.flatMap(
( settingsProperties ) =>
Expand Down Expand Up @@ -194,7 +194,7 @@ function generateDocs( themejson ) {
/* --------------- *
* Styles *
* --------------- */
autogen += '## Styles\n\n';
autogen += '## styles\n\n';
autogen += `${ themejson.properties.styles.description }\n\n`;
const styles = Object.entries(
themejson.definitions.stylesProperties.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For example, a schema for WordPress 5.8 is available at <code>https://schemas.wp
See [Developing with theme.json](/docs/how-to-guides/themes/global-settings-and-styles.md#developing-with-themejson) for how to use the JSON schema in your editor.

<!-- START TOKEN Autogenerated - DO NOT EDIT -->
## Settings
## settings

Settings for the block editor and individual blocks. These include things like:
- Which customization options should be available to the user.
Expand Down Expand Up @@ -205,7 +205,7 @@ Generate custom CSS custom properties of the form `--wp--custom--{key}--{nested-

---

## Styles
## styles

Organized way to set CSS properties. Styles in the top-level will be added in the `body` selector.

Expand Down

0 comments on commit 1e12e62

Please sign in to comment.