Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/src/components/AttributeCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,22 @@ const rawJson = JSON.stringify(attribute, null, 2);
)}
</div>

{attribute.additional_context && attribute.additional_context.length > 0 && (
<details open class="mt-4 pt-3 border-t border-border group">
<summary class="cursor-pointer list-none flex items-center gap-2 text-sm text-text-muted transition-colors duration-fast hover:text-text-secondary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="transition-transform duration-fast group-open:rotate-90">
<path d="M9 18l6-6-6-6"/>
</svg>
Additional Context
</summary>
<ul class="mt-3 ml-5 flex flex-col gap-1.5 list-disc list-outside text-sm text-text-secondary leading-relaxed">
{attribute.additional_context.map((note) => (
<li>{note}</li>
))}
</ul>
</details>
)}

{attribute.changelog && attribute.changelog.length > 0 && (
<details class="mt-4 pt-3 border-t border-border group">
<summary class="cursor-pointer list-none flex items-center gap-2 text-sm text-text-muted transition-colors duration-fast hover:text-text-secondary">
Expand Down
1 change: 1 addition & 0 deletions docs/src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const attributeSchema = z.object({
.optional(),
alias: z.array(z.string()).optional(),
sdks: z.array(z.string()).optional(),
additional_context: z.array(z.string()).optional(),
changelog: z
.array(
z.object({
Expand Down
7 changes: 7 additions & 0 deletions docs/src/pages/llms-full.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ export const GET: APIRoute = async () => {
lines.push('- OpenTelemetry: yes');
}

if (data.additional_context && data.additional_context.length > 0) {
lines.push('- Additional context:');
for (const note of data.additional_context) {
lines.push(` - ${note}`);
}
}

if (data.deprecation) {
let deprecationNote = '- Deprecated: yes';
if (data.deprecation.replacement) {
Expand Down
Loading