diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 45873c9..35bcdec 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -2,6 +2,7 @@ import { defineConfig } from 'vitepress' const path = require('path') // https://vitepress.dev/reference/site-config export default defineConfig({ + base: '/vue-office/examples/docs/', title: "vue-office", description: "更简单的office文件预览", themeConfig: { @@ -43,10 +44,5 @@ export default defineConfig({ socialLinks: [ { icon: 'github', link: 'https://github.com/501351981/vue-office' } ] - }, - configureWebpack: (config, isServer) => { - console.log(config.output.path) - config.output.path = path.resolve(__dirname, '../../examples/docs') - // return config } }) diff --git a/docs/package.json b/docs/package.json index 955ee0d..0ac50d8 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,8 +1,8 @@ { "scripts": { - "docs:dev": "vitepress dev", - "docs:build": "vitepress build", - "docs:preview": "vitepress preview" + "dev": "vitepress dev", + "build": "vitepress build", + "preview": "vitepress preview" }, "dependencies": { "vue": "^3.2.47" diff --git a/examples/docs/404.html b/examples/docs/404.html index 31fe371..6920fe9 100644 --- a/examples/docs/404.html +++ b/examples/docs/404.html @@ -5,15 +5,15 @@
404
But if you don't change your direction, and if you keep looking, you may end up where you are heading.
404
But if you don't change your direction, and if you keep looking, you may end up where you are heading.