diff --git a/docs/.vuepress/client.ts b/docs/.vuepress/client.ts
index f9edb73..aa1c369 100644
--- a/docs/.vuepress/client.ts
+++ b/docs/.vuepress/client.ts
@@ -1,22 +1,8 @@
import { defineClientConfig } from 'vuepress/client'
-// import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
-// import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
-// import NpmBadgeGroup from 'vuepress-theme-plume/features/NpmBadgeGroup.vue'
-// import Swiper from 'vuepress-theme-plume/features/Swiper.vue'
-
-// import CustomComponent from './theme/components/Custom.vue'
-
-// import './theme/styles/custom.css'
+import RImg from './theme/components/RImg.vue'
export default defineClientConfig({
enhance({ app }) {
- // built-in components
- // app.component('RepoCard', RepoCard)
- // app.component('NpmBadge', NpmBadge)
- // app.component('NpmBadgeGroup', NpmBadgeGroup)
- // app.component('Swiper', Swiper) // you should install `swiper`
-
- // your custom components
- // app.component('CustomComponent', CustomComponent)
+ app.component('RImg', RImg)
},
})
diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts
index bc1daeb..0fe0e03 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vuepress/config.ts
@@ -3,6 +3,11 @@ import { plumeTheme } from 'vuepress-theme-plume'
import { viteBundler } from '@vuepress/bundler-vite'
import { commentPlugin } from '@vuepress/plugin-comment'
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+const __filename = fileURLToPath(import.meta.url)
+const __dirname = path.dirname(__filename)
export default defineUserConfig({
base: '/',
@@ -14,7 +19,16 @@ export default defineUserConfig({
['link', { rel: 'icon', type: 'image/png', href: 'https://theme-plume.vuejs.press/favicon-32x32.png' }],
],
- bundler: viteBundler(),
+ bundler: viteBundler({
+ viteOptions: {
+ resolve: {
+ alias: {
+ '@resources': path.resolve(__dirname, '../resources'),
+ '/@resources': path.resolve(__dirname, '../resources'),
+ },
+ },
+ },
+ }),
shouldPrefetch: false,
theme: plumeTheme({
diff --git a/docs/.vuepress/theme/components/Custom.vue b/docs/.vuepress/theme/components/Custom.vue
deleted file mode 100644
index 04bac0a..0000000
--- a/docs/.vuepress/theme/components/Custom.vue
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
- {{ message }}
-
-
diff --git a/docs/.vuepress/theme/components/RImg.vue b/docs/.vuepress/theme/components/RImg.vue
new file mode 100644
index 0000000..bbb63fd
--- /dev/null
+++ b/docs/.vuepress/theme/components/RImg.vue
@@ -0,0 +1,27 @@
+
+
+
+
+