fix: doc lang

This commit is contained in:
dragooncjw 2025-03-06 20:49:15 +08:00
parent 5994d610ce
commit 65174b9fcd
15 changed files with 22 additions and 28 deletions

View File

@ -38,7 +38,7 @@ export const PreviewEditor = ({
}} }}
> >
<SandpackLayout style={previewStyle}> <SandpackLayout style={previewStyle}>
{children} <div className="light-mode">{children}</div>
{/* <SandpackPreview /> */} {/* <SandpackPreview /> */}
</SandpackLayout> </SandpackLayout>
<SandpackLayout> <SandpackLayout>

View File

@ -68,6 +68,14 @@ export default defineConfig({
lang: 'zh', lang: 'zh',
label: 'zh', label: 'zh',
outlineTitle: '大纲', outlineTitle: '大纲',
searchNoResultsText: '未搜索到相关结果',
searchPlaceholderText: '搜索文档',
searchSuggestedQueryText: '可更换不同的关键字后重试',
overview: {
filterNameText: '过滤',
filterPlaceholderText: '输入关键词',
filterNoResultText: '未找到匹配的 API',
},
}, },
], ],
socialLinks: [ socialLinks: [

View File

@ -7,9 +7,7 @@ outline: false
import { FixedFeatureOverview } from '../../../../components'; import { FixedFeatureOverview } from '../../../../components';
<div className='light-mode'> <FixedFeatureOverview />
<FixedFeatureOverview />
</div>
## Installation ## Installation

View File

@ -7,9 +7,7 @@ outline: false
import { FixedLayoutSimplePreview } from '../../../../components'; import { FixedLayoutSimplePreview } from '../../../../components';
<div className='light-mode'> <FixedLayoutSimplePreview />
<FixedLayoutSimplePreview />
</div>
## Installation ## Installation

View File

@ -7,9 +7,7 @@ outline: false
import { FreeFeatureOverview } from '../../../../components'; import { FreeFeatureOverview } from '../../../../components';
<div className='light-mode'> <FreeFeatureOverview />
<FreeFeatureOverview />
</div>
## Installation ## Installation

View File

@ -7,9 +7,7 @@ outline: false
import { FreeLayoutSimplePreview } from '../../../../components'; import { FreeLayoutSimplePreview } from '../../../../components';
<div className='light-mode'> <FreeLayoutSimplePreview />
<FreeLayoutSimplePreview />
</div>
## Installation ## Installation

View File

@ -98,7 +98,7 @@ Suitable for decoupling large data objects, often used in games, where each char
::: :::
![ECS](./assets/ecs.png) <img style={{filter: 'invert(0.9)'}} src="./assets/ecs.png"/>
ReduxStore pseudo code ReduxStore pseudo code
```jsx pure ```jsx pure

View File

@ -1,4 +1,5 @@
--- ---
# API Overview # API Overview
title: API 预览
overview: true overview: true
--- ---

View File

@ -7,9 +7,7 @@ outline: false
import { FixedFeatureOverview } from '../../../../components'; import { FixedFeatureOverview } from '../../../../components';
<div className='light-mode'> <FixedFeatureOverview />
<FixedFeatureOverview />
</div>
## 安装 ## 安装

View File

@ -7,9 +7,7 @@ outline: false
import { FixedLayoutSimplePreview } from '../../../../components'; import { FixedLayoutSimplePreview } from '../../../../components';
<div className='light-mode'> <FixedLayoutSimplePreview />
<FixedLayoutSimplePreview />
</div>
## 安装 ## 安装

View File

@ -7,9 +7,7 @@ outline: false
import { FreeFeatureOverview } from '../../../../components'; import { FreeFeatureOverview } from '../../../../components';
<div className='light-mode'> <FreeFeatureOverview />
<FreeFeatureOverview />
</div>
## 安装 ## 安装

View File

@ -7,9 +7,7 @@ outline: false
import { FreeLayoutSimplePreview } from '../../../../components'; import { FreeLayoutSimplePreview } from '../../../../components';
<div className='light-mode'> <FreeLayoutSimplePreview />
<FreeLayoutSimplePreview />
</div>
## 安装 ## 安装

View File

@ -1,3 +1,4 @@
--- ---
overview: true overview: true
title: 预览
--- ---

View File

@ -7,7 +7,7 @@
::: :::
![ECS](@/public/ecs.png) <img style={{filter: 'invert(0.9)'}} src="@/public/ecs.png"/>
ReduxStore 伪代码 ReduxStore 伪代码
```jsx pure ```jsx pure

View File

@ -7,7 +7,7 @@ hero:
tagline: 高性能,可扩展,可定制 tagline: 高性能,可扩展,可定制
actions: actions:
- theme: brand - theme: brand
text: Quick Start text: 快速开始
link: /guide/introduction link: /guide/introduction
- theme: alt - theme: alt
text: GitHub text: GitHub