-
-
-
-
-
-
- {{ props.icon.name }}
-
+
+
+
+
+
+
+
+
+ {{ props.icon.name }}
+
+
+ {{ tags }}
+
+
-
+
diff --git a/docs/.vitepress/components/IconPreview.vue b/docs/.vitepress/components/IconPreview.vue
new file mode 100644
index 000000000..d9196c880
--- /dev/null
+++ b/docs/.vitepress/components/IconPreview.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/icons/[iconName].md b/docs/icons/[iconName].md
deleted file mode 100644
index f80937d16..000000000
--- a/docs/icons/[iconName].md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-layout: page
----
-
-
-
-
diff --git a/docs/icons/[name].md b/docs/icons/[name].md
new file mode 100644
index 000000000..0347a0ef3
--- /dev/null
+++ b/docs/icons/[name].md
@@ -0,0 +1,33 @@
+---
+layout: doc
+footer: false
+editLink: false
+next: false
+prev: false
+---
+
+
+
+
+
+# {{ $params.name }} {#name}
+
+
+
+
diff --git a/docs/icons/[iconName].paths.ts b/docs/icons/[name].paths.ts
similarity index 85%
rename from docs/icons/[iconName].paths.ts
rename to docs/icons/[name].paths.ts
index e3ff1706d..b28301b85 100644
--- a/docs/icons/[iconName].paths.ts
+++ b/docs/icons/[name].paths.ts
@@ -15,8 +15,11 @@ export function getAllNames() {
export default {
paths: async () => {
const icons = await getAllData()
- return icons.map(({ name: iconName }) => ({
- params: { iconName }
- }))
+ return icons.map((iconData) => {
+
+ return {
+ params: iconData,
+ }
+ })
}
}