Skip to content

Commit

Permalink
Update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 17, 2024
1 parent 3a3db12 commit 2e71248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/api-docs/gen-theme-reference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function generateDocs( themejson ) {
autogen += '## customTemplates\n\n';
autogen += `${ themejson.properties.customTemplates.description }\n\n`;
autogen += '| Property | Description | Type |\n';
autogen += '| --- | --- | --- |\n';
autogen += '| -------- | ----------- | ---- |\n';
const customTemplatesProperties = Object.entries(
themejson.properties.customTemplates.items.properties
);
Expand All @@ -240,7 +240,7 @@ function generateDocs( themejson ) {
autogen += '## templateParts\n\n';
autogen += `${ themejson.properties.templateParts.description }\n\n`;
autogen += '| Property | Description | Type |\n';
autogen += '| --- | --- | --- |\n';
autogen += '| -------- | ----------- | ---- |\n';
const templatePartsProperties = Object.entries(
themejson.properties.templateParts.items.properties
);
Expand All @@ -254,7 +254,7 @@ function generateDocs( themejson ) {
/* --------------- *
* patterns *
* --------------- */
autogen += '## patterns' + '\n\n';
autogen += '## patterns\n\n';
autogen += `Type: ${ generateTypes( themejson.properties.patterns ) }.\n\n`;
autogen += themejson.properties.patterns.description + '\n';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Typography styles.
Additional metadata for custom templates defined in the templates folder.

| Property | Description | Type |
| --- | --- | --- |
| -------- | ----------- | ---- |
| name | Filename, without extension, of the template in the templates folder. | `string` |
| title | Title of the template, translatable. | `string` |
| postTypes | List of post types that can use this custom template. | `[ string ]` |
Expand All @@ -345,7 +345,7 @@ Additional metadata for custom templates defined in the templates folder.
Additional metadata for template parts defined in the parts folder.

| Property | Description | Type |
| --- | --- | --- |
| -------- | ----------- | ---- |
| name | Filename, without extension, of the template in the parts folder. | `string` |
| title | Title of the template, translatable. | `string` |
| area | The area the template part is used for. Block variations for `header` and `footer` values exist and will be used when the area is set to one of those. | `string` |
Expand Down

0 comments on commit 2e71248

Please sign in to comment.