Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 517fcd3

Browse files
committed
docs: show icons
fix #131
1 parent 81ca7a1 commit 517fcd3

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

packages/.vitepress/config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ export default defineConfig({
136136
})),
137137
],
138138
},
139+
{
140+
text: 'Icons',
141+
link: '/base-components/icons/',
142+
},
139143
],
140144
'/app-components/': [],
141145
},

packages/.vitepress/plugins/markdown-transform.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ ${cleanedTestCodeInertia}
127127
}
128128
}
129129

130+
if (/icons/.test(id)) {
131+
const fileName = getFileName(id)
132+
const file = getFile(id, fileName, 'ts')
133+
134+
return {
135+
code: `${code}
136+
137+
\`\`\`ts
138+
${file}
139+
\`\`\`
140+
`,
141+
}
142+
}
143+
130144
if (/utils|types|keys|composables|theme/.test(id)) {
131145
return generateDoc(id, code)
132146
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Icons
2+
3+
All the icons used in the components.

0 commit comments

Comments
 (0)