From 425ba7ecf7f62af0037d0830e776175fb54fdd5b Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 27 Jun 2019 11:37:44 +0800 Subject: [PATCH] [improvement] rename docs/src to docs/site (#3660) --- build/webpack.dev.js | 8 ++++---- docs/{src => site}/DocsApp.vue | 0 docs/{src => site}/WapApp.vue | 0 docs/{src => site}/components/DemoList.vue | 2 +- docs/{src => site}/components/DemoPages.vue | 0 docs/{src => site}/components/MobileNav.vue | 0 docs/{src => site}/demo-common.js | 0 docs/{src => site}/doc.config.js | 0 docs/{src => site}/index.js | 0 docs/{src => site}/index.tpl | 0 docs/{src => site}/mobile.js | 0 docs/{src => site}/router.js | 0 docs/{src => site}/utils/i18n.js | 0 docs/{src => site}/utils/iframe-router.js | 0 docs/{src => site}/utils/index.js | 0 docs/{src => site}/utils/lang.js | 0 test/demo-test.ts | 2 +- 17 files changed, 6 insertions(+), 6 deletions(-) rename docs/{src => site}/DocsApp.vue (100%) rename docs/{src => site}/WapApp.vue (100%) rename docs/{src => site}/components/DemoList.vue (97%) rename docs/{src => site}/components/DemoPages.vue (100%) rename docs/{src => site}/components/MobileNav.vue (100%) rename docs/{src => site}/demo-common.js (100%) rename docs/{src => site}/doc.config.js (100%) rename docs/{src => site}/index.js (100%) rename docs/{src => site}/index.tpl (100%) rename docs/{src => site}/mobile.js (100%) rename docs/{src => site}/router.js (100%) rename docs/{src => site}/utils/i18n.js (100%) rename docs/{src => site}/utils/iframe-router.js (100%) rename docs/{src => site}/utils/index.js (100%) rename docs/{src => site}/utils/lang.js (100%) 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';