Skip to content

Commit

Permalink
Merge pull request #2316 from boltdesignsystem/feature/DS-582
Browse files Browse the repository at this point in the history
DS-582 Add information about twig file name on schema section
  • Loading branch information
colbytcook committed Sep 13, 2021
2 parents 53d1631 + 7338e83 commit 04901ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion docs-site/src/components/pattern-lab-utils/schema-docs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
{% for schema in schemas %}
{% set title = schema.title %}
<bolt-accordion-item{% if loop.first %} open{% endif %}>
{% if title %}<strong slot="trigger">{{ title }}</strong>{% endif %}
{% if title %}
<div slot="trigger">
<strong>{{ title }}</strong>
<span>({{ title|replace({' ': '-'})|lower }}.twig)</span>
</div>
{% endif %}
{{ macros.schemaWrapper(schema) }}
</bolt-accordion-item>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/bolt-navbar/navbar-li.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ iconSchema.description =

module.exports = {
$schema: 'http://json-schema.org/draft-04/schema#',
title: 'Navbar item',
title: 'Navbar li',
type: 'object',
required: ['link'],
properties: {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/bolt-navbar/navbar-ul.schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
$schema: 'http://json-schema.org/draft-04/schema#',
title: 'Navbar list',
title: 'Navbar ul',
type: 'object',
required: ['content'],
properties: {
Expand Down
2 changes: 1 addition & 1 deletion packages/layouts/bolt-layout/layout-item.schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
$schema: 'http://json-schema.org/draft-04/schema#',
title: 'Layout-Item',
title: 'Layout item',
type: 'object',
properties: {
attributes: {
Expand Down

0 comments on commit 04901ed

Please sign in to comment.