Skip to content

Commit caf529f

Browse files
committed
fix(docs): the all of components are not displayed properly
1 parent ebbe060 commit caf529f

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

docs/.vitepress/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ export default defineConfig({
2525
},
2626
vite: {
2727
plugins: [groupIconVitePlugin(), tailwindcss()],
28-
build: {
29-
rollupOptions: {
30-
external: ["vue"],
31-
},
32-
},
3328
},
3429

3530
locales: {

docs/en/components/alert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Alert } from '@vue-nextui/core'
2+
import { Alert } from '@vue-nextui/core/raw'
33
</script>
44

55
# Alert

docs/en/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Button } from '@vue-nextui/core'
2+
import { Button } from '@vue-nextui/core/raw'
33
</script>
44

55
# Button

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"packageManager": "pnpm@9.0.0",
77
"scripts": {
88
"dev": "vitepress dev",
9-
"build": "pnpm -w build:core && vitepress build"
9+
"build": "pnpm -w build:core && vitepress build",
10+
"preview": "pnpm build && vitepress preview"
1011
},
1112
"devDependencies": {
1213
"@heroui/theme": "catalog:prod",

docs/zh/components/alert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Alert } from '@vue-nextui/core'
2+
import { Alert } from '@vue-nextui/core/raw'
33
</script>
44

55
# Alert

docs/zh/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Button } from '@vue-nextui/core'
2+
import { Button } from '@vue-nextui/core/raw'
33
</script>
44

55
# Button

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)