Skip to content

Commit fdff2ae

Browse files
authored
chore: docs title & nav (OpenListTeam#25)
* 删除标题定冠词 The * 移除 Pricing 页面和 Nav Menu * 文档 Nav 标题改成 i18n
1 parent f099781 commit fdff2ae

6 files changed

Lines changed: 6 additions & 15 deletions

File tree

‎.valaxy/typed-router.d.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,5 @@ declare module 'vue-router/auto-routes' {
130130
'/guide/installation/source': RouteRecordInfo<'/guide/installation/source', '/guide/installation/source', Record<never, never>, Record<never, never>>,
131131
'/migration/': RouteRecordInfo<'/migration/', '/migration', Record<never, never>, Record<never, never>>,
132132
'/migration/alist-v3': RouteRecordInfo<'/migration/alist-v3', '/migration/alist-v3', Record<never, never>, Record<never, never>>,
133-
'/pricing': RouteRecordInfo<'/pricing', '/pricing', Record<never, never>, Record<never, never>>,
134133
}
135134
}

‎components/PressNavBar.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script lang="ts" setup>
88
import { useSidebar, useSiteConfig } from 'valaxy'
99
import { useThemeConfig } from 'valaxy-theme-press/composables/config.ts'
10+
import { useI18n } from 'vue-i18n'
1011
1112
defineProps<{
1213
isScreenOpen?: boolean
@@ -16,6 +17,7 @@
1617
(e: 'toggleScreen'): void
1718
}>()
1819
20+
const { t } = useI18n()
1921
const { hasSidebar } = useSidebar()
2022
2123
const siteConfig = useSiteConfig()
@@ -33,7 +35,7 @@
3335
:aria-label="siteConfig.title"
3436
>
3537
<img v-if="themeConfig.logo" class="logo" :src="themeConfig.logo" alt="LOGO" />
36-
<span class="inline-flex">{{ siteConfig.title }}</span>
38+
<span class="inline-flex">{{ t('nav.title') }}</span>
3739
</RouterLink>
3840
<div class="self-stretch flex justify-center items-center text-sm leading-5">
3941
<PressNavBarSearch p="x-2" />

‎locales/en.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ search:
44

55
# ! Navigation menu
66
nav:
7+
title: OpenList Docs
78
configuration: Configuration
89
guide: User Guide
910
faq: FAQ
10-
pricing: Pricing
1111
community:
1212
title: Community
1313
discussions: Github Discussions

‎locales/zh-CN.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ search:
44

55
# ! Navigation menu
66
nav:
7+
title: OpenList 文档
78
configuration: 配置
89
guide: 用户指南
910
faq: FAQ
10-
pricing: 定价
1111
community:
1212
title: 社区
1313
discussions: Github 讨论区

‎pages/pricing.md‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎valaxy.config.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const safelist = ['i-ri-home-line', 'i-ri-github-line']
1818

1919
export default defineValaxyConfig<PressTheme.Config>({
2020
siteConfig: {
21-
title: 'The OpenList Docs',
21+
title: 'OpenList Docs',
2222
url: SITE_URL,
2323
description: 'Docs site for OpenList',
2424

@@ -82,10 +82,6 @@ export default defineValaxyConfig<PressTheme.Config>({
8282
text: 'nav.faq',
8383
link: '/faq',
8484
},
85-
{
86-
text: 'nav.pricing',
87-
link: '/pricing',
88-
},
8985
{
9086
text: 'nav.community.title',
9187
items: [

0 commit comments

Comments
 (0)