From b721cedf3443461eb9c9aba4c8bf507092780e22 Mon Sep 17 00:00:00 2001 From: Masterain Date: Fri, 17 Mar 2023 22:59:58 -0700 Subject: [PATCH] Localization --- docs/.vuepress/navbar/en.ts | 9 ++++++-- docs/.vuepress/sidebar/en.ts | 30 +++++++++++++++++++++++++- docs/README.md | 13 ++--------- docs/en/README.md | 19 +++++----------- docs/en/features/mhy-account-switch.md | 2 +- docs/en/quick-start.md | 3 ++- docs/en/statements/README.md | 2 +- docs/en/statements/bug-report.md | 8 +++---- docs/en/statements/update-log.md | 2 +- docs/markmap.md | 23 -------------------- docs/statements/bug-report.md | 2 +- 11 files changed, 53 insertions(+), 60 deletions(-) delete mode 100644 docs/markmap.md diff --git a/docs/.vuepress/navbar/en.ts b/docs/.vuepress/navbar/en.ts index e3d87ac1e..51eee7cb2 100644 --- a/docs/.vuepress/navbar/en.ts +++ b/docs/.vuepress/navbar/en.ts @@ -1,11 +1,16 @@ import { navbar } from "vuepress-theme-hope"; export const enNavbar = navbar([ - "/en", - { text: "Document", icon: "article", link: "/features/README.md" }, + "/en/", + { text: "Document", icon: "article", link: "/en/features/"}, { text: "Download", icon: "install", link: "https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52", }, + { + text: "Community", + icon: "community", + link: "/en/community.md" + }, ]); diff --git a/docs/.vuepress/sidebar/en.ts b/docs/.vuepress/sidebar/en.ts index 1d25bc62c..6beb3d1d8 100644 --- a/docs/.vuepress/sidebar/en.ts +++ b/docs/.vuepress/sidebar/en.ts @@ -3,10 +3,38 @@ import { sidebar } from "vuepress-theme-hope"; export const enSidebar = sidebar({ "/en/": [ "", + { + icon: "workingDirectory", + text: "Project", + link: "project.md" + }, + { + icon: "network", + text: "Localization", + link: "i18n.md" + }, { icon: "play", - text: "快速开始", + text: "Quick Start", link: "quick-start.md" + }, + { + icon: "read", + text: "Features", + prefix: "features/", + children: "structure" + }, + { + icon: "advance", + text: "Advanced", + prefix: "advanced/", + children: "structure" + }, + { + icon: "article", + text: "Statements", + prefix: "statements/", + children: "structure" } ], }); diff --git a/docs/README.md b/docs/README.md index 0b01c3ec6..45f273f27 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,9 +10,9 @@ actions: link: https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52 type: primary - text: 快速开始 - link: /quick-start.md + link: quick-start.md - text: 文档 - link: /features/ + link: features/ - text: 项目介绍 link: project.md @@ -80,12 +80,3 @@ features: copyright: false footer: MIT Licensed | Copyright © 2019-present Mr.Hope --- -