From 450b81023a25d6c38c7b841dbe37cf99ba18a2f6 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Thu, 5 Dec 2024 16:51:26 +0200 Subject: [PATCH] docs(tokens): print descriptions for token groups --- docs/_includes/layouts/pages/tokens.11ty.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/_includes/layouts/pages/tokens.11ty.ts b/docs/_includes/layouts/pages/tokens.11ty.ts index 0e397ca491..ab5291210d 100644 --- a/docs/_includes/layouts/pages/tokens.11ty.ts +++ b/docs/_includes/layouts/pages/tokens.11ty.ts @@ -365,9 +365,10 @@ export default class TokensPage extends Renderer { `; + const description = options.tokens._?.$description ?? options.tokens.$description ?? ''; return html` ${permalink} -
${await this.renderTemplate(options.tokens.$description ?? '', 'md')}
+
${await this.renderTemplate(description, 'md')}
${this.#renderThemeTokensCard(options)} ${await this.#renderTable(options)} ${await this.#renderChildren(options)}