diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 802e81d..2bf7637 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -33,7 +33,7 @@ jobs:
- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=4096
- run: yarn run build-docs
+ run: yarn run docs:build2
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
diff --git a/.gitignore b/.gitignore
index 902b7b8..40393ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,4 +11,5 @@ docs/.vuepress/.cache/
docs/.vuepress/.temp/
/packages/cli/baidu.api.txt
node_modules/
-/.github/access key.txt
\ No newline at end of file
+/.github/access key.txt
+/docs/.vuepress/dist
\ No newline at end of file
diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts
index b8c7970..c9d2e59 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vuepress/config.ts
@@ -1,30 +1,54 @@
-import { defineHopeConfig } from "vuepress-theme-hope";
-import themeConfig from "./themeConfig";
+import { defineUserConfig } from "vuepress";
+import { hopeTheme } from "vuepress-theme-hope";
+import * as navbar from "./navbar";
+import * as sidebar from "./sidebar";
-export default defineHopeConfig({
- base: "/voerka-i18n/", // 发布位置GithubPages时
- //base: "/", // 本机调试时
- head: [
- [
- "link",
- {
- rel: "stylesheet",
- href: "//at.alicdn.com/t/font_2410206_mfj6e1vbwo.css",
- },
- ],
- ],
- locales: {
- "/": {
- lang: "zh-CN",
- title: "VoerkaI18n",
- description: "适用于Nodejs/Vue/React的国际化解决方案",
+export default defineUserConfig({
+ base : "/voerka-i18n/", // 发布位置GithubPages时
+ lang : "zh-CN",
+ locales : {
+ "/" : {
+ lang : "zh-CN",
+ title : "中文"
+ },
+ "/en/" : {
+ lang : "en-US",
+ title : "English"
+ }
},
- "/en/": {
- lang: "en-US",
- title: "VoerkaI18n",
- description: "适用于Nodejs/Vue/React的国际化解决方案",
- }
- },
-
- themeConfig,
-});
+ theme : hopeTheme({
+ hostname : "https://gitee.com/zhangfisher/voerka-i18n",
+ author : {
+ name : "wxzhang",
+ url : "https://gitee.com/zhangfisher/voerka-i18n",
+ },
+ iconPrefix : "iconfont icon-",
+ logo : "/logo.svg",
+ home : "/zh/home",
+ repo : "https://gitee.com/zhangfisher/voerka-i18n",
+ docsDir : "docs",
+ breadcrumb : false,
+ pageInfo : ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
+ locales : {
+ "/" : {
+ navbar : navbar.zh,
+ sidebar : sidebar.zh,
+ displayFooter: true
+ },
+ "/en/" : {
+ navbar : navbar.en,
+ sidebar : sidebar.en,
+ footer : "Default footer",
+ displayFooter: true,
+ }
+ },
+ plugins : {
+ mdEnhance : {
+ enableAll : true,
+ presentation : {
+ plugins : ["highlight", "math", "search", "notes", "zoom"],
+ },
+ }
+ }
+ })
+})
diff --git a/docs/.vuepress/dist/404.html b/docs/.vuepress/dist/404.html
index e35084a..60712f1 100644
--- a/docs/.vuepress/dist/404.html
+++ b/docs/.vuepress/dist/404.html
@@ -1,11 +1,11 @@
-
+
-
+
- VoerkaI18n
+
-
-
-
-
- Loading speaker view...
-
-
- Upcoming
-
-
-
Time Click to Reset
-
- 0:00 AM
-
-
- 00:00:00
-
-
-
-
Pacing \u2013 Time to finish current slide
-
- 00:00:00
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
diff --git a/docs/.vuepress/dist/en/guide/encrypt.html b/docs/.vuepress/dist/en/guide/encrypt.html
index 541865c..c7d2eed 100644
--- a/docs/.vuepress/dist/en/guide/encrypt.html
+++ b/docs/.vuepress/dist/en/guide/encrypt.html
@@ -1,11 +1,11 @@
-
+
-
+
- Encryption article | VoerkaI18n
+