Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Jan 5, 2024
1 parent e0ad23d commit bf1de62
Show file tree
Hide file tree
Showing 17 changed files with 1,163 additions and 314 deletions.
29 changes: 17 additions & 12 deletions .vitepress/locales/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
interface Info {
title: string
desc?: string
}

export interface CustomConfig {
keyword: string
description: string
Expand All @@ -14,21 +19,21 @@ export interface CustomConfig {
}[]
}[]
}
staff: {
title: string
desc: string
clientStaff: Info
webStaff: Info
pinStaff: Info
translateStaff: Info
communityStaff: Info
}
team: {
title: string
desc: string
coreMember: {
title: string
desc: string
}
emeritiMember: {
title: string
desc: string
}
partnerMember: {
title: string
desc: string
}
coreMember: Info
emeritiMember: Info
partnerMember: Info
}
payment?: Record<
string,
Expand Down
32 changes: 26 additions & 6 deletions .vitepress/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { baseHelper } from '../theme/utils'
import { socialList } from '../theme/composables/socialList'
import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
import type { CustomConfig } from './types'
import { title } from 'process'

export const META_URL = 'https://yuanshen.site/docs/'
export const META_TITLE = '原神地图'
Expand Down Expand Up @@ -36,6 +37,25 @@ export const zhConfig: LocaleSpecificConfig<
quote: '可能跟温迪一起出游了吧',
linkLabel: '回到首页',
},
staff: {
title: 'Staff',
desc: '空荧酒馆『原神地图』项目参与制作',
communityStaff: {
title: '社区运营',
},
clientStaff: {
title: '客户端开发',
},
webStaff: {
title: '网页端开发',
},
translateStaff: {
title: '本地化翻译',
},
pinStaff: {
title: '地图点位标记',
},
},
team: {
title: '关于团队',
desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。',
Expand Down Expand Up @@ -172,17 +192,17 @@ function nav(): DefaultTheme.NavItem[] {
text: '鸣谢',
items: [
{
text: '技术鸣谢',
link: '/credits.md',
},
{
text: '贡献鸣谢',
link: '/contribution.md',
text: '制作人员',
link: '/staff.md',
},
{
text: '赞助鸣谢',
link: '/support-us.md#赞助鸣谢',
},
{
text: '技术鸣谢',
link: '/credits.md',
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {

const font = new FontFace(
'zh-cn-full',
'url(https://yuanshen.site/docs/fonts/zh-cn-full.ttf)',
'url(/docs/fonts/zh-cn-full.ttf)',
{
display: 'swap',
},
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/styles/vars.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: zh-cn-min;
src: url('https://yuanshen.site/docs/fonts/zh-cn-min.woff');
src: url('/docs/fonts/zh-cn-min.woff');
}

/**
Expand Down
Loading

0 comments on commit bf1de62

Please sign in to comment.