diff --git a/.gitignore b/.gitignore index 8b50c20..76c70ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ node_modules -/docs/.vitepress/dist/ .vscode .idea diff --git a/docs/.env b/doc/.env similarity index 100% rename from docs/.env rename to doc/.env diff --git a/docs/.env.development b/doc/.env.development similarity index 100% rename from docs/.env.development rename to doc/.env.development diff --git a/docs/.env.production b/doc/.env.production similarity index 100% rename from docs/.env.production rename to doc/.env.production diff --git a/docs/.vitepress/cache/deps/_metadata.json b/doc/.vitepress/cache/deps/_metadata.json similarity index 100% rename from docs/.vitepress/cache/deps/_metadata.json rename to doc/.vitepress/cache/deps/_metadata.json diff --git a/docs/.vitepress/cache/deps/chunk-D6LSERAS.js b/doc/.vitepress/cache/deps/chunk-D6LSERAS.js similarity index 100% rename from docs/.vitepress/cache/deps/chunk-D6LSERAS.js rename to doc/.vitepress/cache/deps/chunk-D6LSERAS.js diff --git a/docs/.vitepress/cache/deps/chunk-D6LSERAS.js.map b/doc/.vitepress/cache/deps/chunk-D6LSERAS.js.map similarity index 100% rename from docs/.vitepress/cache/deps/chunk-D6LSERAS.js.map rename to doc/.vitepress/cache/deps/chunk-D6LSERAS.js.map diff --git a/docs/.vitepress/cache/deps/package.json b/doc/.vitepress/cache/deps/package.json similarity index 100% rename from docs/.vitepress/cache/deps/package.json rename to doc/.vitepress/cache/deps/package.json diff --git a/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js b/doc/.vitepress/cache/deps/vitepress___@vue_devtools-api.js similarity index 100% rename from docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js rename to doc/.vitepress/cache/deps/vitepress___@vue_devtools-api.js diff --git a/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map b/doc/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map similarity index 100% rename from docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map rename to doc/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map diff --git a/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js b/doc/.vitepress/cache/deps/vitepress___@vueuse_core.js similarity index 100% rename from docs/.vitepress/cache/deps/vitepress___@vueuse_core.js rename to doc/.vitepress/cache/deps/vitepress___@vueuse_core.js diff --git a/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map b/doc/.vitepress/cache/deps/vitepress___@vueuse_core.js.map similarity index 100% rename from docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map rename to doc/.vitepress/cache/deps/vitepress___@vueuse_core.js.map diff --git a/docs/.vitepress/cache/deps/vue.js b/doc/.vitepress/cache/deps/vue.js similarity index 100% rename from docs/.vitepress/cache/deps/vue.js rename to doc/.vitepress/cache/deps/vue.js diff --git a/docs/.vitepress/cache/deps/vue.js.map b/doc/.vitepress/cache/deps/vue.js.map similarity index 100% rename from docs/.vitepress/cache/deps/vue.js.map rename to doc/.vitepress/cache/deps/vue.js.map diff --git a/docs/.vitepress/config.mts b/doc/.vitepress/config.mts similarity index 98% rename from docs/.vitepress/config.mts rename to doc/.vitepress/config.mts index 612dcdf..6766cc0 100644 --- a/docs/.vitepress/config.mts +++ b/doc/.vitepress/config.mts @@ -20,7 +20,7 @@ export default defineConfig({ title: process.env.VITE_DOCS_TITLE, description: '前端笔记', assetsDir: 'static', - outDir: './dist', + outDir: '../docs', themeConfig: { // https://vitepress.dev/reference/default-theme-config outlineTitle: '导览', diff --git a/docs/.vitepress/configs/nav-config.ts b/doc/.vitepress/configs/nav-config.ts similarity index 100% rename from docs/.vitepress/configs/nav-config.ts rename to doc/.vitepress/configs/nav-config.ts diff --git a/docs/.vitepress/configs/sidebar-config.ts b/doc/.vitepress/configs/sidebar-config.ts similarity index 100% rename from docs/.vitepress/configs/sidebar-config.ts rename to doc/.vitepress/configs/sidebar-config.ts diff --git a/docs/.vitepress/theme/components/io-grid/index.md b/doc/.vitepress/theme/components/io-grid/index.md similarity index 100% rename from docs/.vitepress/theme/components/io-grid/index.md rename to doc/.vitepress/theme/components/io-grid/index.md diff --git a/docs/.vitepress/theme/components/io-grid/io-grid.vue b/doc/.vitepress/theme/components/io-grid/io-grid.vue similarity index 100% rename from docs/.vitepress/theme/components/io-grid/io-grid.vue rename to doc/.vitepress/theme/components/io-grid/io-grid.vue diff --git a/docs/.vitepress/theme/index.mts b/doc/.vitepress/theme/index.mts similarity index 100% rename from docs/.vitepress/theme/index.mts rename to doc/.vitepress/theme/index.mts diff --git a/docs/.vitepress/theme/style/index.css b/doc/.vitepress/theme/style/index.css similarity index 100% rename from docs/.vitepress/theme/style/index.css rename to doc/.vitepress/theme/style/index.css diff --git a/docs/api-examples.md b/doc/api-examples.md similarity index 100% rename from docs/api-examples.md rename to doc/api-examples.md diff --git a/docs/docs/blogBuildManual/index.md b/doc/docs/blogBuildManual/index.md similarity index 100% rename from docs/docs/blogBuildManual/index.md rename to doc/docs/blogBuildManual/index.md diff --git a/docs/docs/searchHome/icf.ts b/doc/docs/searchHome/icf.ts similarity index 100% rename from docs/docs/searchHome/icf.ts rename to doc/docs/searchHome/icf.ts diff --git a/docs/docs/searchHome/index.md b/doc/docs/searchHome/index.md similarity index 100% rename from docs/docs/searchHome/index.md rename to doc/docs/searchHome/index.md diff --git a/docs/docs/unitTest/vitest/configIndex.md b/doc/docs/unitTest/vitest/configIndex.md similarity index 100% rename from docs/docs/unitTest/vitest/configIndex.md rename to doc/docs/unitTest/vitest/configIndex.md diff --git a/docs/docs/unitTest/vitest/index.md b/doc/docs/unitTest/vitest/index.md similarity index 100% rename from docs/docs/unitTest/vitest/index.md rename to doc/docs/unitTest/vitest/index.md diff --git a/docs/docs/unitTest/vueTestUtils/apiReference.md b/doc/docs/unitTest/vueTestUtils/apiReference.md similarity index 100% rename from docs/docs/unitTest/vueTestUtils/apiReference.md rename to doc/docs/unitTest/vueTestUtils/apiReference.md diff --git a/docs/docs/unitTest/vueTestUtils/index.md b/doc/docs/unitTest/vueTestUtils/index.md similarity index 100% rename from docs/docs/unitTest/vueTestUtils/index.md rename to doc/docs/unitTest/vueTestUtils/index.md diff --git a/docs/index.md b/doc/index.md similarity index 100% rename from docs/index.md rename to doc/index.md diff --git a/docs/markdown-examples.md b/doc/markdown-examples.md similarity index 100% rename from docs/markdown-examples.md rename to doc/markdown-examples.md diff --git a/docs/package-lock.json b/doc/package-lock.json similarity index 100% rename from docs/package-lock.json rename to doc/package-lock.json diff --git a/docs/package.json b/doc/package.json similarity index 100% rename from docs/package.json rename to doc/package.json diff --git a/docs/pnpm b/doc/pnpm similarity index 100% rename from docs/pnpm rename to doc/pnpm diff --git a/docs/dist/404.html b/docs/404.html similarity index 100% rename from docs/dist/404.html rename to docs/404.html diff --git a/docs/dist/api-examples.html b/docs/api-examples.html similarity index 100% rename from docs/dist/api-examples.html rename to docs/api-examples.html diff --git a/docs/dist/docs/blogBuildManual/index.html b/docs/docs/blogBuildManual/index.html similarity index 100% rename from docs/dist/docs/blogBuildManual/index.html rename to docs/docs/blogBuildManual/index.html diff --git a/docs/dist/docs/searchHome/index.html b/docs/docs/searchHome/index.html similarity index 100% rename from docs/dist/docs/searchHome/index.html rename to docs/docs/searchHome/index.html diff --git a/docs/dist/docs/unitTest/vitest/configIndex.html b/docs/docs/unitTest/vitest/configIndex.html similarity index 100% rename from docs/dist/docs/unitTest/vitest/configIndex.html rename to docs/docs/unitTest/vitest/configIndex.html diff --git a/docs/dist/docs/unitTest/vitest/index.html b/docs/docs/unitTest/vitest/index.html similarity index 100% rename from docs/dist/docs/unitTest/vitest/index.html rename to docs/docs/unitTest/vitest/index.html diff --git a/docs/dist/docs/unitTest/vueTestUtils/apiReference.html b/docs/docs/unitTest/vueTestUtils/apiReference.html similarity index 100% rename from docs/dist/docs/unitTest/vueTestUtils/apiReference.html rename to docs/docs/unitTest/vueTestUtils/apiReference.html diff --git a/docs/dist/docs/unitTest/vueTestUtils/index.html b/docs/docs/unitTest/vueTestUtils/index.html similarity index 100% rename from docs/dist/docs/unitTest/vueTestUtils/index.html rename to docs/docs/unitTest/vueTestUtils/index.html diff --git a/docs/dist/hashmap.json b/docs/hashmap.json similarity index 100% rename from docs/dist/hashmap.json rename to docs/hashmap.json diff --git a/docs/dist/index.html b/docs/index.html similarity index 100% rename from docs/dist/index.html rename to docs/index.html diff --git a/docs/dist/markdown-examples.html b/docs/markdown-examples.html similarity index 100% rename from docs/dist/markdown-examples.html rename to docs/markdown-examples.html diff --git a/docs/dist/static/api-examples.md.B8USBLh3.js b/docs/static/api-examples.md.B8USBLh3.js similarity index 100% rename from docs/dist/static/api-examples.md.B8USBLh3.js rename to docs/static/api-examples.md.B8USBLh3.js diff --git a/docs/dist/static/api-examples.md.B8USBLh3.lean.js b/docs/static/api-examples.md.B8USBLh3.lean.js similarity index 100% rename from docs/dist/static/api-examples.md.B8USBLh3.lean.js rename to docs/static/api-examples.md.B8USBLh3.lean.js diff --git a/docs/dist/static/app.qoJHHf6d.js b/docs/static/app.qoJHHf6d.js similarity index 100% rename from docs/dist/static/app.qoJHHf6d.js rename to docs/static/app.qoJHHf6d.js diff --git a/docs/dist/static/chunks/framework.BirGTBos.js b/docs/static/chunks/framework.BirGTBos.js similarity index 100% rename from docs/dist/static/chunks/framework.BirGTBos.js rename to docs/static/chunks/framework.BirGTBos.js diff --git a/docs/dist/static/chunks/theme.B1IVEhee.js b/docs/static/chunks/theme.B1IVEhee.js similarity index 100% rename from docs/dist/static/chunks/theme.B1IVEhee.js rename to docs/static/chunks/theme.B1IVEhee.js diff --git a/docs/dist/static/docs_blogBuildManual_index.md.D9GH0XFg.js b/docs/static/docs_blogBuildManual_index.md.D9GH0XFg.js similarity index 100% rename from docs/dist/static/docs_blogBuildManual_index.md.D9GH0XFg.js rename to docs/static/docs_blogBuildManual_index.md.D9GH0XFg.js diff --git a/docs/dist/static/docs_blogBuildManual_index.md.D9GH0XFg.lean.js b/docs/static/docs_blogBuildManual_index.md.D9GH0XFg.lean.js similarity index 100% rename from docs/dist/static/docs_blogBuildManual_index.md.D9GH0XFg.lean.js rename to docs/static/docs_blogBuildManual_index.md.D9GH0XFg.lean.js diff --git a/docs/dist/static/docs_searchHome_index.md.DDkDvcRy.js b/docs/static/docs_searchHome_index.md.DDkDvcRy.js similarity index 100% rename from docs/dist/static/docs_searchHome_index.md.DDkDvcRy.js rename to docs/static/docs_searchHome_index.md.DDkDvcRy.js diff --git a/docs/dist/static/docs_searchHome_index.md.DDkDvcRy.lean.js b/docs/static/docs_searchHome_index.md.DDkDvcRy.lean.js similarity index 100% rename from docs/dist/static/docs_searchHome_index.md.DDkDvcRy.lean.js rename to docs/static/docs_searchHome_index.md.DDkDvcRy.lean.js diff --git a/docs/dist/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.js b/docs/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.js similarity index 100% rename from docs/dist/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.js rename to docs/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.js diff --git a/docs/dist/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.lean.js b/docs/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.lean.js similarity index 100% rename from docs/dist/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.lean.js rename to docs/static/docs_unitTest_vitest_configIndex.md.BLBCExO3.lean.js diff --git a/docs/dist/static/docs_unitTest_vitest_index.md.BT3CaW2P.js b/docs/static/docs_unitTest_vitest_index.md.BT3CaW2P.js similarity index 100% rename from docs/dist/static/docs_unitTest_vitest_index.md.BT3CaW2P.js rename to docs/static/docs_unitTest_vitest_index.md.BT3CaW2P.js diff --git a/docs/dist/static/docs_unitTest_vitest_index.md.BT3CaW2P.lean.js b/docs/static/docs_unitTest_vitest_index.md.BT3CaW2P.lean.js similarity index 100% rename from docs/dist/static/docs_unitTest_vitest_index.md.BT3CaW2P.lean.js rename to docs/static/docs_unitTest_vitest_index.md.BT3CaW2P.lean.js diff --git a/docs/dist/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.js b/docs/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.js similarity index 100% rename from docs/dist/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.js rename to docs/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.js diff --git a/docs/dist/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.lean.js b/docs/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.lean.js similarity index 100% rename from docs/dist/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.lean.js rename to docs/static/docs_unitTest_vueTestUtils_apiReference.md.5DpORa74.lean.js diff --git a/docs/dist/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.js b/docs/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.js similarity index 100% rename from docs/dist/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.js rename to docs/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.js diff --git a/docs/dist/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.lean.js b/docs/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.lean.js similarity index 100% rename from docs/dist/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.lean.js rename to docs/static/docs_unitTest_vueTestUtils_index.md.tpY7VNAM.lean.js diff --git a/docs/dist/static/index.md.I599biSD.js b/docs/static/index.md.I599biSD.js similarity index 100% rename from docs/dist/static/index.md.I599biSD.js rename to docs/static/index.md.I599biSD.js diff --git a/docs/dist/static/index.md.I599biSD.lean.js b/docs/static/index.md.I599biSD.lean.js similarity index 100% rename from docs/dist/static/index.md.I599biSD.lean.js rename to docs/static/index.md.I599biSD.lean.js diff --git a/docs/dist/static/inter-italic-cyrillic-ext.r48I6akx.woff2 b/docs/static/inter-italic-cyrillic-ext.r48I6akx.woff2 similarity index 100% rename from docs/dist/static/inter-italic-cyrillic-ext.r48I6akx.woff2 rename to docs/static/inter-italic-cyrillic-ext.r48I6akx.woff2 diff --git a/docs/dist/static/inter-italic-cyrillic.By2_1cv3.woff2 b/docs/static/inter-italic-cyrillic.By2_1cv3.woff2 similarity index 100% rename from docs/dist/static/inter-italic-cyrillic.By2_1cv3.woff2 rename to docs/static/inter-italic-cyrillic.By2_1cv3.woff2 diff --git a/docs/dist/static/inter-italic-greek-ext.1u6EdAuj.woff2 b/docs/static/inter-italic-greek-ext.1u6EdAuj.woff2 similarity index 100% rename from docs/dist/static/inter-italic-greek-ext.1u6EdAuj.woff2 rename to docs/static/inter-italic-greek-ext.1u6EdAuj.woff2 diff --git a/docs/dist/static/inter-italic-greek.DJ8dCoTZ.woff2 b/docs/static/inter-italic-greek.DJ8dCoTZ.woff2 similarity index 100% rename from docs/dist/static/inter-italic-greek.DJ8dCoTZ.woff2 rename to docs/static/inter-italic-greek.DJ8dCoTZ.woff2 diff --git a/docs/dist/static/inter-italic-latin-ext.CN1xVJS-.woff2 b/docs/static/inter-italic-latin-ext.CN1xVJS-.woff2 similarity index 100% rename from docs/dist/static/inter-italic-latin-ext.CN1xVJS-.woff2 rename to docs/static/inter-italic-latin-ext.CN1xVJS-.woff2 diff --git a/docs/dist/static/inter-italic-latin.C2AdPX0b.woff2 b/docs/static/inter-italic-latin.C2AdPX0b.woff2 similarity index 100% rename from docs/dist/static/inter-italic-latin.C2AdPX0b.woff2 rename to docs/static/inter-italic-latin.C2AdPX0b.woff2 diff --git a/docs/dist/static/inter-italic-vietnamese.BSbpV94h.woff2 b/docs/static/inter-italic-vietnamese.BSbpV94h.woff2 similarity index 100% rename from docs/dist/static/inter-italic-vietnamese.BSbpV94h.woff2 rename to docs/static/inter-italic-vietnamese.BSbpV94h.woff2 diff --git a/docs/dist/static/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 b/docs/static/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 similarity index 100% rename from docs/dist/static/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 rename to docs/static/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 diff --git a/docs/dist/static/inter-roman-cyrillic.C5lxZ8CY.woff2 b/docs/static/inter-roman-cyrillic.C5lxZ8CY.woff2 similarity index 100% rename from docs/dist/static/inter-roman-cyrillic.C5lxZ8CY.woff2 rename to docs/static/inter-roman-cyrillic.C5lxZ8CY.woff2 diff --git a/docs/dist/static/inter-roman-greek-ext.CqjqNYQ-.woff2 b/docs/static/inter-roman-greek-ext.CqjqNYQ-.woff2 similarity index 100% rename from docs/dist/static/inter-roman-greek-ext.CqjqNYQ-.woff2 rename to docs/static/inter-roman-greek-ext.CqjqNYQ-.woff2 diff --git a/docs/dist/static/inter-roman-greek.BBVDIX6e.woff2 b/docs/static/inter-roman-greek.BBVDIX6e.woff2 similarity index 100% rename from docs/dist/static/inter-roman-greek.BBVDIX6e.woff2 rename to docs/static/inter-roman-greek.BBVDIX6e.woff2 diff --git a/docs/dist/static/inter-roman-latin-ext.4ZJIpNVo.woff2 b/docs/static/inter-roman-latin-ext.4ZJIpNVo.woff2 similarity index 100% rename from docs/dist/static/inter-roman-latin-ext.4ZJIpNVo.woff2 rename to docs/static/inter-roman-latin-ext.4ZJIpNVo.woff2 diff --git a/docs/dist/static/inter-roman-latin.Di8DUHzh.woff2 b/docs/static/inter-roman-latin.Di8DUHzh.woff2 similarity index 100% rename from docs/dist/static/inter-roman-latin.Di8DUHzh.woff2 rename to docs/static/inter-roman-latin.Di8DUHzh.woff2 diff --git a/docs/dist/static/inter-roman-vietnamese.BjW4sHH5.woff2 b/docs/static/inter-roman-vietnamese.BjW4sHH5.woff2 similarity index 100% rename from docs/dist/static/inter-roman-vietnamese.BjW4sHH5.woff2 rename to docs/static/inter-roman-vietnamese.BjW4sHH5.woff2 diff --git a/docs/dist/static/markdown-examples.md.BO-H_YFh.js b/docs/static/markdown-examples.md.BO-H_YFh.js similarity index 100% rename from docs/dist/static/markdown-examples.md.BO-H_YFh.js rename to docs/static/markdown-examples.md.BO-H_YFh.js diff --git a/docs/dist/static/markdown-examples.md.BO-H_YFh.lean.js b/docs/static/markdown-examples.md.BO-H_YFh.lean.js similarity index 100% rename from docs/dist/static/markdown-examples.md.BO-H_YFh.lean.js rename to docs/static/markdown-examples.md.BO-H_YFh.lean.js diff --git a/docs/dist/static/style.DA1YiNJG.css b/docs/static/style.DA1YiNJG.css similarity index 100% rename from docs/dist/static/style.DA1YiNJG.css rename to docs/static/style.DA1YiNJG.css diff --git a/package.json b/package.json index 971e059..61b3f63 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "dev:docs": "pnpm -C docs docs:dev" + "dev:docs": "pnpm -C doc docs:dev", + "build:docs": "pnpm -C doc docs:build" }, "keywords": [], "author": "",