diff --git a/.workflow/pipeline-docs-build.yml b/.workflow/pipeline-docs-build.yml index 2caf06c2..2ad0a39f 100644 --- a/.workflow/pipeline-docs-build.yml +++ b/.workflow/pipeline-docs-build.yml @@ -40,14 +40,6 @@ stages: - '# 执行编译命令' - npm install && npm run build - '' - - '# 资源复制,使得官网访问支持直接域名访问 + 域名后面带路径 2种访问方式' - - '# cp ./CNAME docs/.vuepress/dist/' - - rm -rf docs/.vuepress/dist/neutrino-proxy - - rm -rf docs/.vuepress/distTemp - - cp -rf docs/.vuepress/dist/ docs/.vuepress/distTemp - - cp -rf docs/.vuepress/distTemp docs/.vuepress/dist/neutrino-proxy - - rm -rf docs/.vuepress/distTemp - - '' - '# 初始化git仓库' - cd docs/.vuepress/dist - git init diff --git a/neutrino-proxy-vuepress/docs/.vuepress/config.js b/neutrino-proxy-vuepress/docs/.vuepress/config.js index ade36128..164549dd 100644 --- a/neutrino-proxy-vuepress/docs/.vuepress/config.js +++ b/neutrino-proxy-vuepress/docs/.vuepress/config.js @@ -9,7 +9,8 @@ module.exports = { title: "中微子代理", description: '一个基于Netty的开源内网穿透神器', - base: '/neutrino-proxy/', // 默认'/'。如果你想将你的网站部署到如 https://foo.github.io/bar/,那么 base 应该被设置成 "/bar/",(否则页面将失去样式等文件) + // base: '/neutrino-proxy/', // 默认'/'。如果你想将你的网站部署到如 https://foo.github.io/bar/,那么 base 应该被设置成 "/bar/",(否则页面将失去样式等文件) + base: '/', head: [ // 注入到页面 中的标签,格式[tagName, { attrName: attrValue }, innerHTML?] ['link', {rel: 'icon', href: '/img/favicon.ico'}], //favicons,资源放在public文件夹 ['meta', {name: 'keywords', content: 'vuepress,theme,blog,vdoing'}],