Skip to content

feat(docs): Render additional_context in attribute cards and LLM export#399

Merged
matejminar merged 1 commit into
mainfrom
feat/docs-additional-context
May 21, 2026
Merged

feat(docs): Render additional_context in attribute cards and LLM export#399
matejminar merged 1 commit into
mainfrom
feat/docs-additional-context

Conversation

@matejminar
Copy link
Copy Markdown
Member

@matejminar matejminar commented May 21, 2026

Surfaces the additional_context field (added in #393, populated in #397) in the Astro docs site and the plain text LLM export.

Depends on: #397 (must be merged first)

Changes

  • content.config.ts: Added additional_context to the Zod schema so Astro accepts the field
  • AttributeCard.astro: Renders notes as a collapsible <details open> section above the changelog, matching the existing disclosure pattern
  • llms-full.txt.ts: Includes additional_context as nested list items in the plain text export for LLM consumption

Preview

The Additional Context section appears as an open-by-default collapsible above the Changelog, using the same visual style as other disclosure sections in the card.

CleanShot 2026-05-21 at 12 27 48

Closes TET-2373

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (attributes) Add additional_context to gen_ai cost and usage attributes by matejminar in #397
  • (docs) Render additional_context in attribute cards and LLM export by matejminar in #399
  • (schema) Add additional_context field to attribute definitions by matejminar in #393

🤖 This preview updates automatically when you update the PR.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

TET-2373

@matejminar matejminar force-pushed the feat/docs-additional-context branch from 17c6084 to 5e0aa8c Compare May 21, 2026 10:19
Surfaces the `additional_context` field (added in #393, populated in #397) in
the Astro docs site and the plain text LLM export.

Changes:

- content.config.ts: Added additional_context to the Zod schema
- AttributeCard.astro: Renders notes as a collapsible section (open by default)
  above the changelog, matching the existing disclosure pattern
- llms-full.txt.ts: Includes additional_context as nested list items in the
  plain text export for LLM consumption
@matejminar matejminar force-pushed the feat/docs-additional-context branch from 5e0aa8c to c558649 Compare May 21, 2026 10:20
@matejminar matejminar marked this pull request as ready for review May 21, 2026 10:28
@matejminar matejminar requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners May 21, 2026 10:28
Copy link
Copy Markdown
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@matejminar matejminar merged commit 0fe2f5d into main May 21, 2026
16 checks passed
@matejminar matejminar deleted the feat/docs-additional-context branch May 21, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants