Skip to content

Commit

Permalink
docs(tokens): print descriptions for token groups
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Dec 5, 2024
1 parent 2195be2 commit 450b810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_includes/layouts/pages/tokens.11ty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,10 @@ export default class TokensPage extends Renderer<Data> {
</h${options.level}>
</uxdot-copy-permalink>`;

const description = options.tokens._?.$description ?? options.tokens.$description ?? '';
return html`
${permalink}
<div class="description">${await this.renderTemplate(options.tokens.$description ?? '', 'md')}</div>
<div class="description">${await this.renderTemplate(description, 'md')}</div>
${this.#renderThemeTokensCard(options)}
${await this.#renderTable(options)}
${await this.#renderChildren(options)}
Expand Down

0 comments on commit 450b810

Please sign in to comment.