Skip to content

feat: render an "Added in" pill for the @added_in tag#77

Merged
barjin merged 1 commit into
masterfrom
feat/added-in-pill
Jun 4, 2026
Merged

feat: render an "Added in" pill for the @added_in tag#77
barjin merged 1 commit into
masterfrom
feat/added-in-pill

Conversation

@barjin
Copy link
Copy Markdown
Member

@barjin barjin commented Jun 4, 2026

Adds support for a custom @added_in <version> JSDoc block tag and renders it as a pill (Added in: x.y.z) at the top of a member's comment.

@added_in is appended to TypeDoc's default blockTags so it's recognized without a warning and without dropping the built-in tags. Comment extracts the tag, renders it using the existing Infima badge classes, and excludes it from the raw block-tag list so it isn't shown twice. Pill-only comments still render correctly.

The tag itself is populated in source by a separate annotation script (per-repo), so this only needs the plugin to recognize and display it.

Recognize the custom @added_in block tag in TypeDoc by appending it to
the default block tags, and render its value as a pill at the top of a
member's comment instead of a raw tag row.
@barjin barjin merged commit dd376cd into master Jun 4, 2026
3 checks passed
@barjin barjin deleted the feat/added-in-pill branch June 4, 2026 16:03
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