Quellcode durchsuchen

Merge pull request #35 from dragooncjw/fix/ci-publish-alpha

fix: alpha publish
chenjiawei.inizio vor 10 Monaten
Ursprung
Commit
51a37ebaf1

+ 2 - 0
.github/workflows/publish-alpha.yml

@@ -63,6 +63,8 @@ jobs:
               \"nextBump\": \"prerelease\"
               \"nextBump\": \"prerelease\"
             }
             }
           ]" > common/config/rush/version-policies.json
           ]" > common/config/rush/version-policies.json
+      - name: replace with alpha version
+        run: node common/scripts/install-run-rush.js version --ensure-version-policy --override-version=$LATEST_VERSION --version-policy=publishPolicy
       - name: Version Bump
       - name: Version Bump
         run: node common/scripts/install-run-rush.js version --bump --version-policy publishPolicy
         run: node common/scripts/install-run-rush.js version --bump --version-policy publishPolicy
       - name: Publish
       - name: Publish

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

@@ -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>

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

@@ -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: [

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

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

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

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

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

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

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

@@ -7,9 +7,7 @@ outline: false
 
 
 import { FreeLayoutSimplePreview } from '../../../../components';
 import { FreeLayoutSimplePreview } from '../../../../components';
 
 
-<div className='light-mode'>
-  <FreeLayoutSimplePreview />
-</div>
+<FreeLayoutSimplePreview />
 
 
 ## Installation
 ## 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
 ReduxStore pseudo code
 ```jsx pure
 ```jsx pure

BIN
apps/docs/src/public/logo.png


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

@@ -1,4 +1,5 @@
 ---
 ---
 # API Overview
 # API Overview
+title: API 预览
 overview: true
 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';
 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';
 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';
 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';
 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
 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 伪代码
 ReduxStore 伪代码
 ```jsx pure
 ```jsx pure

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

@@ -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