Skip to content

Commit

Permalink
Display since tags in the component api page.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Jan 19, 2025
1 parent 79158b2 commit b10cd9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/[component].md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# {{ $params.title }}
# {{ $params.title }} {{ $params.since }}

<!-- @content -->
2 changes: 2 additions & 0 deletions docs/api/components.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ export default {
const eventsMarkdown = formatEvents(componentInfo.events);
const slotsMarkdown = formatSlots(componentInfo.slots);
const deprecated = formatDeprecated(componentInfo.tags);
const since = formatSince(componentInfo.tags);

return {
params: {
component: componentInfo.displayName,
title: componentInfo.displayName,
description: markdownRenderer.render(componentInfo.description),
since,
type,
},
content: `
Expand Down

0 comments on commit b10cd9d

Please sign in to comment.