Skip to content

Commit

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

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

0 comments on commit 217377b

Please sign in to comment.