diff --git a/docs/api/components.data.js b/docs/api/components.data.js index 1bc9234..4951a8e 100644 --- a/docs/api/components.data.js +++ b/docs/api/components.data.js @@ -4,8 +4,9 @@ import { createMarkdownRenderer } from 'vitepress'; function formatProps(props) { return props ? '## Props\n\n' + props.map((prop) => { const deprecated = formatDeprecated(prop.tags); + const since = formatSince(prop.tags); return ` -### ${prop.name} +### ${prop.name} ${since} {#${prop.name}} ${deprecated} @@ -72,6 +73,13 @@ ${deprecated.description} }).join('\n') : ''; } +function formatSince(tags) { + return tags?.since ? + tags.since.map((s) => { + return `(since ${s.description})`; + }).join('') : ''; +} + export default { watch: [ '../../lib/components/*.component.ts',