From 0c01d22f51c0a98cac53c4c6556b536275feb85a Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Wed, 17 Dec 2025 04:11:13 +0800 Subject: [PATCH] navbar --- .vitepress/config.mts | 21 +++++++++++++++------ backup/.vuepress/config/navbar/en.ts | 10 ---------- backup/.vuepress/config/navbar/index.ts | 3 --- backup/.vuepress/config/navbar/ru.ts | 9 --------- backup/.vuepress/config/navbar/zh.ts | 9 --------- 5 files changed, 15 insertions(+), 37 deletions(-) delete mode 100644 backup/.vuepress/config/navbar/en.ts delete mode 100644 backup/.vuepress/config/navbar/index.ts delete mode 100644 backup/.vuepress/config/navbar/ru.ts delete mode 100644 backup/.vuepress/config/navbar/zh.ts diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 6fd7f086..e3aec9a4 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -10,8 +10,11 @@ export default defineConfig({ themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ - { text: "Home", link: "/" }, - { text: "Examples", link: "/markdown-examples" }, + { text: "首页", link: "/" }, + { text: "大史记", link: "/about/news.md" }, + { text: "配置指南", link: "/config/" }, + { text: "开发指南", link: "/development/" }, + { text: "使用指南", link: "/document/" }, ], sidebar: [ @@ -45,8 +48,11 @@ export default defineConfig({ themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ - { text: "Home", link: "/" }, - { text: "Examples", link: "/markdown-examples" }, + { text: "Homepage", link: "/en" }, + { text: "The Great Chronicles", link: "/en/about/news.md" }, + { text: "Config Reference", link: "/en/config/" }, + { text: "Developer Guide", link: "/en/development/" }, + { text: "Quick Start", link: "/en/document/" }, ], sidebar: [ @@ -75,8 +81,11 @@ export default defineConfig({ themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ - { text: "Home", link: "/" }, - { text: "Examples", link: "/markdown-examples" }, + { text: "Главная", link: "/ru" }, + { text: "История сайта", link: "/ru/about/news.md" }, + { text: "Справочник по конфигурации", link: "/ru/config/" }, + { text: "Руководство разработчика", link: "/ru/development/" }, + { text: "Быстрый старт", link: "/ru/document/" }, ], sidebar: [ diff --git a/backup/.vuepress/config/navbar/en.ts b/backup/.vuepress/config/navbar/en.ts deleted file mode 100644 index f01b4f5a..00000000 --- a/backup/.vuepress/config/navbar/en.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { NavbarConfig } from "@vuepress/theme-default"; - -// TODO: translation -export const navbarEn: NavbarConfig = [ - { text: "Homepage", link: "/en" }, - { text: "The Great Chronicles", link: "/en/about/news.md" }, - { text: "Config Reference", link: "/en/config/" }, - { text: "Developer Guide", link: "/en/development/" }, - { text: "Quick Start", link: "/en/document/" }, -]; diff --git a/backup/.vuepress/config/navbar/index.ts b/backup/.vuepress/config/navbar/index.ts deleted file mode 100644 index f04ff689..00000000 --- a/backup/.vuepress/config/navbar/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./en.js"; -export * from "./zh.js"; -export * from "./ru.js"; diff --git a/backup/.vuepress/config/navbar/ru.ts b/backup/.vuepress/config/navbar/ru.ts deleted file mode 100644 index a735debf..00000000 --- a/backup/.vuepress/config/navbar/ru.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { NavbarConfig } from "@vuepress/theme-default"; - -export const navbarRu: NavbarConfig = [ - { text: "Главная", link: "/ru" }, - { text: "История сайта", link: "/ru/about/news.md" }, - { text: "Справочник по конфигурации", link: "/ru/config/" }, - { text: "Руководство разработчика", link: "/ru/development/" }, - { text: "Быстрый старт", link: "/ru/document/" }, -]; diff --git a/backup/.vuepress/config/navbar/zh.ts b/backup/.vuepress/config/navbar/zh.ts deleted file mode 100644 index b3b134ec..00000000 --- a/backup/.vuepress/config/navbar/zh.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { NavbarConfig } from "@vuepress/theme-default"; - -export const navbarZh: NavbarConfig = [ - { text: "首页", link: "/" }, - { text: "大史记", link: "/about/news.md" }, - { text: "配置指南", link: "/config/" }, - { text: "开发指南", link: "/development/" }, - { text: "使用指南", link: "/document/" }, -];