dragooncjw 10 месяцев назад
Родитель
Сommit
65174b9fcd

+ 1 - 1
apps/docs/components/preview-editor.tsx

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

+ 8 - 0
apps/docs/rspress.config.ts

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

+ 1 - 3
apps/docs/src/en/examples/fixed-layout/fixed-feature-overview.mdx

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

+ 1 - 3
apps/docs/src/en/examples/fixed-layout/fixed-layout-simple.mdx

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

+ 1 - 3
apps/docs/src/en/examples/free-layout/free-feature-overview.mdx

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

+ 1 - 3
apps/docs/src/en/examples/free-layout/free-layout-simple.mdx

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

+ 1 - 1
apps/docs/src/en/guide/index/introduction.mdx

@@ -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
 ```jsx pure

+ 1 - 0
apps/docs/src/zh/api/index.mdx

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

+ 1 - 3
apps/docs/src/zh/examples/fixed-layout/fixed-feature-overview.mdx

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

+ 1 - 3
apps/docs/src/zh/examples/fixed-layout/fixed-layout-simple.mdx

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

+ 1 - 3
apps/docs/src/zh/examples/free-layout/free-feature-overview.mdx

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

+ 1 - 3
apps/docs/src/zh/examples/free-layout/free-layout-simple.mdx

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

+ 1 - 0
apps/docs/src/zh/examples/index.mdx

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

+ 1 - 1
apps/docs/src/zh/guide/concepts/ecs.mdx

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

+ 1 - 1
apps/docs/src/zh/index.md

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