diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2b4776ba..74670d21 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: # 本地.ssh文件下的私钥id_rsa,存在secrets的TOKEN中 SSH_PRIVATE_KEY: ${{ secrets.HARRYWAN_PRIVATE_KEY }} # 源目录,相对于$GITHUB_WORKSPACE根目录的路径 - SOURCE: docs/.vuepress/dist/ + SOURCE: docs/.vitepress/dist/ # 服务器域名 REMOTE_HOST: ${{ secrets.TX_IP }} # 腾讯云默认用户名为root @@ -55,5 +55,5 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.3.3 with: branch: gh-pages # The branch the action should deploy to. - folder: docs/.vuepress/dist + folder: docs/.vitepress/dist token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.gitignore b/.gitignore index 0b8aff0e..dc770bff 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ node_modules npm-debug.log docs/.vitepress/cache /packages/fes-template/dist -/packages/fes-doc/docs/.vuepress/dist +/packages/fes-doc/docs/.vitepress/dist /packages/fes-template/package-lock.json /.changelog /packages/*/lib diff --git a/docs/.vitepress/configs/navbar/zh.ts b/docs/.vitepress/configs/navbar/zh.ts index 08bb2ad6..8f24789c 100644 --- a/docs/.vitepress/configs/navbar/zh.ts +++ b/docs/.vitepress/configs/navbar/zh.ts @@ -1,4 +1,3 @@ -// import type { NavbarConfig } from '@vuepress/theme-default' import { version } from '../../../../package.json' export const zh = [ diff --git a/docs/.vitepress/configs/sidebar/zh.ts b/docs/.vitepress/configs/sidebar/zh.ts index 7fb94c10..764978c8 100644 --- a/docs/.vitepress/configs/sidebar/zh.ts +++ b/docs/.vitepress/configs/sidebar/zh.ts @@ -1,4 +1,3 @@ -// import type { SidebarConfig } from '@vuepress/theme-default'; export const zh = { '/guide/': [ diff --git a/docs/guide/contributing.md b/docs/guide/contributing.md index 7f53a5cf..74c1bb14 100644 --- a/docs/guide/contributing.md +++ b/docs/guide/contributing.md @@ -49,7 +49,7 @@ pnpm i ## 贡献文档 -文档代码在`docs`目录,基于 [vuepress](https://v2.vuepress.vuejs.org/zh/) 实现。 +文档代码在`docs`目录,基于 [vitepress](https://vitepress.dev/guide/what-is-vitepress) 实现。 #### 第一步:启动服务 @@ -59,9 +59,9 @@ pnpm docs:dev #### 第二步:修改 md 文件 -菜单配置在`/docs/.vuepress/configs/sidebar/zh.ts`中,可以通过此配置找到对应想修改的文档。 +菜单配置在`/docs/.vitpress/configs/sidebar/zh.ts`中,可以通过此配置找到对应想修改的文档。 -如果想添加图片,则可以先把图片添加至`/docs/.vuepress/public`,在代码中使用: +如果想添加图片,则可以先把图片添加至`/docs/.vitpress/public`,在代码中使用: ```html 架构