diff --git a/build/webpack.dev.js b/build/webpack.dev.js
index df8f05ab7..7ac1b4d3c 100644
--- a/build/webpack.dev.js
+++ b/build/webpack.dev.js
@@ -6,8 +6,8 @@ const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
mode: 'development',
entry: {
- 'vant-docs': './docs/src/index.js',
- 'vant-mobile': './docs/src/mobile.js'
+ 'vant-docs': './docs/site/index.js',
+ 'vant-mobile': './docs/site/mobile.js'
},
output: {
path: path.join(__dirname, '../docs/dist'),
@@ -77,13 +77,13 @@ module.exports = {
new ProgressBarPlugin(),
new HtmlWebpackPlugin({
chunks: ['vant-docs'],
- template: 'docs/src/index.tpl',
+ template: 'docs/site/index.tpl',
filename: 'index.html',
inject: true
}),
new HtmlWebpackPlugin({
chunks: ['vant-mobile'],
- template: 'docs/src/index.tpl',
+ template: 'docs/site/index.tpl',
filename: 'mobile.html',
inject: true
})
diff --git a/docs/src/DocsApp.vue b/docs/site/DocsApp.vue
similarity index 100%
rename from docs/src/DocsApp.vue
rename to docs/site/DocsApp.vue
diff --git a/docs/src/WapApp.vue b/docs/site/WapApp.vue
similarity index 100%
rename from docs/src/WapApp.vue
rename to docs/site/WapApp.vue
diff --git a/docs/src/components/DemoList.vue b/docs/site/components/DemoList.vue
similarity index 97%
rename from docs/src/components/DemoList.vue
rename to docs/site/components/DemoList.vue
index f41d94e45..0ba0abf79 100644
--- a/docs/src/components/DemoList.vue
+++ b/docs/site/components/DemoList.vue
@@ -16,7 +16,7 @@
-
+
Vant
{{ description }}
diff --git a/docs/src/components/DemoPages.vue b/docs/site/components/DemoPages.vue
similarity index 100%
rename from docs/src/components/DemoPages.vue
rename to docs/site/components/DemoPages.vue
diff --git a/docs/src/components/MobileNav.vue b/docs/site/components/MobileNav.vue
similarity index 100%
rename from docs/src/components/MobileNav.vue
rename to docs/site/components/MobileNav.vue
diff --git a/docs/src/demo-common.js b/docs/site/demo-common.js
similarity index 100%
rename from docs/src/demo-common.js
rename to docs/site/demo-common.js
diff --git a/docs/src/doc.config.js b/docs/site/doc.config.js
similarity index 100%
rename from docs/src/doc.config.js
rename to docs/site/doc.config.js
diff --git a/docs/src/index.js b/docs/site/index.js
similarity index 100%
rename from docs/src/index.js
rename to docs/site/index.js
diff --git a/docs/src/index.tpl b/docs/site/index.tpl
similarity index 100%
rename from docs/src/index.tpl
rename to docs/site/index.tpl
diff --git a/docs/src/mobile.js b/docs/site/mobile.js
similarity index 100%
rename from docs/src/mobile.js
rename to docs/site/mobile.js
diff --git a/docs/src/router.js b/docs/site/router.js
similarity index 100%
rename from docs/src/router.js
rename to docs/site/router.js
diff --git a/docs/src/utils/i18n.js b/docs/site/utils/i18n.js
similarity index 100%
rename from docs/src/utils/i18n.js
rename to docs/site/utils/i18n.js
diff --git a/docs/src/utils/iframe-router.js b/docs/site/utils/iframe-router.js
similarity index 100%
rename from docs/src/utils/iframe-router.js
rename to docs/site/utils/iframe-router.js
diff --git a/docs/src/utils/index.js b/docs/site/utils/index.js
similarity index 100%
rename from docs/src/utils/index.js
rename to docs/site/utils/index.js
diff --git a/docs/src/utils/lang.js b/docs/site/utils/lang.js
similarity index 100%
rename from docs/src/utils/lang.js
rename to docs/site/utils/lang.js
diff --git a/test/demo-test.ts b/test/demo-test.ts
index e408218a5..bece6336d 100644
--- a/test/demo-test.ts
+++ b/test/demo-test.ts
@@ -1,5 +1,5 @@
import Vue from 'vue';
-import '../docs/src/demo-common';
+import '../docs/site/demo-common';
import Locale from '../src/locale';
import { mount, later } from './utils';