Skip to content

Commit abeffc3

Browse files
chore: improve docs infrastructure and i18n support
1 parent 48587ff commit abeffc3

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:20-alpine AS base
22

33
FROM base AS builder
4-
RUN apk add --no-cache libc6-compat
4+
RUN apk add --no-cache libc6-compat git
55
WORKDIR /app
66

77
ARG NEXT_PUBLIC_APP_URL

app/[lang]/docs/[[...slug]]/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export default async function Page({
3131
}}
3232
lastUpdate={page.data.lastModified ? new Date(page.data.lastModified) : undefined}
3333
editOnGithub={{
34-
owner: 'sailos-io',
35-
repo: 'website',
34+
owner: 'labring',
35+
repo: 'sealos-website',
3636
sha: 'main',
3737
// file path, make sure it's valid
3838
path: `content/docs/${page.file.path}`,

app/[lang]/layout.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ export default function LocaleLayout({
1818
{
1919
'zh-cn': {
2020
search: '搜索',
21+
nextPage: '下一页',
22+
previousPage: '上一页',
23+
lastUpdate: '最后更新于',
24+
editOnGithub: '在 GitHub 上编辑',
25+
searchNoResult: '没有找到相关内容',
26+
toc: '目录',
27+
tocNoHeadings: '没有找到目录',
28+
chooseLanguage: '选择语言',
2129
},
2230
}[params.lang]
2331
}

0 commit comments

Comments
 (0)