From 6eacabf0da35af658cf2f78aa067f6b3bb986b64 Mon Sep 17 00:00:00 2001 From: XinPing Wang Date: Wed, 19 May 2021 23:01:17 +0800 Subject: [PATCH] fix: docs directory structure not match recommended (#3,#9) --- lib/generators/docs/templates/{docs => }/.gitignore | 0 .../templates/docs/{src => }/.vuepress/components/Foo/Bar.vue | 0 .../docs/{src => }/.vuepress/components/OtherComponent.vue | 0 .../docs/{src => }/.vuepress/components/demo-component.vue | 0 .../docs/templates/docs/{src => }/.vuepress/config.js | 2 +- .../docs/templates/docs/{src => }/.vuepress/enhanceApp.js | 0 .../docs/templates/docs/{src => }/.vuepress/styles/index.styl | 0 .../templates/docs/{src => }/.vuepress/styles/palette.styl | 0 .../docs/templates/docs/{src/index.md => README.md} | 0 .../docs/templates/docs/{src/config/README.md => config.md} | 0 lib/generators/docs/templates/docs/{src => }/guide/README.md | 0 .../docs/templates/docs/{src => }/guide/using-vue.md | 0 lib/generators/docs/templates/{docs => }/package.json | 4 ++-- 13 files changed, 3 insertions(+), 3 deletions(-) rename lib/generators/docs/templates/{docs => }/.gitignore (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/components/Foo/Bar.vue (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/components/OtherComponent.vue (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/components/demo-component.vue (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/config.js (98%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/enhanceApp.js (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/styles/index.styl (100%) rename lib/generators/docs/templates/docs/{src => }/.vuepress/styles/palette.styl (100%) rename lib/generators/docs/templates/docs/{src/index.md => README.md} (100%) rename lib/generators/docs/templates/docs/{src/config/README.md => config.md} (100%) mode change 100755 => 100644 rename lib/generators/docs/templates/docs/{src => }/guide/README.md (100%) rename lib/generators/docs/templates/docs/{src => }/guide/using-vue.md (100%) rename lib/generators/docs/templates/{docs => }/package.json (82%) diff --git a/lib/generators/docs/templates/docs/.gitignore b/lib/generators/docs/templates/.gitignore similarity index 100% rename from lib/generators/docs/templates/docs/.gitignore rename to lib/generators/docs/templates/.gitignore diff --git a/lib/generators/docs/templates/docs/src/.vuepress/components/Foo/Bar.vue b/lib/generators/docs/templates/docs/.vuepress/components/Foo/Bar.vue similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/components/Foo/Bar.vue rename to lib/generators/docs/templates/docs/.vuepress/components/Foo/Bar.vue diff --git a/lib/generators/docs/templates/docs/src/.vuepress/components/OtherComponent.vue b/lib/generators/docs/templates/docs/.vuepress/components/OtherComponent.vue similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/components/OtherComponent.vue rename to lib/generators/docs/templates/docs/.vuepress/components/OtherComponent.vue diff --git a/lib/generators/docs/templates/docs/src/.vuepress/components/demo-component.vue b/lib/generators/docs/templates/docs/.vuepress/components/demo-component.vue similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/components/demo-component.vue rename to lib/generators/docs/templates/docs/.vuepress/components/demo-component.vue diff --git a/lib/generators/docs/templates/docs/src/.vuepress/config.js b/lib/generators/docs/templates/docs/.vuepress/config.js similarity index 98% rename from lib/generators/docs/templates/docs/src/.vuepress/config.js rename to lib/generators/docs/templates/docs/.vuepress/config.js index 6fbcd98..a95f7df 100755 --- a/lib/generators/docs/templates/docs/src/.vuepress/config.js +++ b/lib/generators/docs/templates/docs/.vuepress/config.js @@ -39,7 +39,7 @@ module.exports = { }, { text: 'Config', - link: '/config/' + link: '/config' }, { text: 'VuePress', diff --git a/lib/generators/docs/templates/docs/src/.vuepress/enhanceApp.js b/lib/generators/docs/templates/docs/.vuepress/enhanceApp.js similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/enhanceApp.js rename to lib/generators/docs/templates/docs/.vuepress/enhanceApp.js diff --git a/lib/generators/docs/templates/docs/src/.vuepress/styles/index.styl b/lib/generators/docs/templates/docs/.vuepress/styles/index.styl similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/styles/index.styl rename to lib/generators/docs/templates/docs/.vuepress/styles/index.styl diff --git a/lib/generators/docs/templates/docs/src/.vuepress/styles/palette.styl b/lib/generators/docs/templates/docs/.vuepress/styles/palette.styl similarity index 100% rename from lib/generators/docs/templates/docs/src/.vuepress/styles/palette.styl rename to lib/generators/docs/templates/docs/.vuepress/styles/palette.styl diff --git a/lib/generators/docs/templates/docs/src/index.md b/lib/generators/docs/templates/docs/README.md similarity index 100% rename from lib/generators/docs/templates/docs/src/index.md rename to lib/generators/docs/templates/docs/README.md diff --git a/lib/generators/docs/templates/docs/src/config/README.md b/lib/generators/docs/templates/docs/config.md old mode 100755 new mode 100644 similarity index 100% rename from lib/generators/docs/templates/docs/src/config/README.md rename to lib/generators/docs/templates/docs/config.md diff --git a/lib/generators/docs/templates/docs/src/guide/README.md b/lib/generators/docs/templates/docs/guide/README.md similarity index 100% rename from lib/generators/docs/templates/docs/src/guide/README.md rename to lib/generators/docs/templates/docs/guide/README.md diff --git a/lib/generators/docs/templates/docs/src/guide/using-vue.md b/lib/generators/docs/templates/docs/guide/using-vue.md similarity index 100% rename from lib/generators/docs/templates/docs/src/guide/using-vue.md rename to lib/generators/docs/templates/docs/guide/using-vue.md diff --git a/lib/generators/docs/templates/docs/package.json b/lib/generators/docs/templates/package.json similarity index 82% rename from lib/generators/docs/templates/docs/package.json rename to lib/generators/docs/templates/package.json index ebfec4c..6ac31df 100755 --- a/lib/generators/docs/templates/docs/package.json +++ b/lib/generators/docs/templates/package.json @@ -9,8 +9,8 @@ }, "repository": "<%= repo %>/<%= name %>", "scripts": { - "dev": "vuepress dev src", - "build": "vuepress build src" + "dev": "vuepress dev docs", + "build": "vuepress build docs" }, "license": "MIT", "devDependencies": {