mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
Merge pull request #37 from dragooncjw/chore/opt-resource
chore: remove playground-plugin & remove useless ci
This commit is contained in:
commit
d7db6f176d
61
.github/workflows/deploy-docs.yml
vendored
61
.github/workflows/deploy-docs.yml
vendored
@ -1,61 +0,0 @@
|
|||||||
name: Deploy Doc Site
|
|
||||||
on:
|
|
||||||
workflow_dispatch
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "gh-pages-branch-workflow" # 唯一标识符,确保只运行一个实例
|
|
||||||
cancel-in-progress: false # 不取消正在运行的实例,后续触发需要等待当前实例完成
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Check if branch is main
|
|
||||||
run: |
|
|
||||||
if [ "$GITHUB_REF" != "refs/heads/gh-pages" ]; then
|
|
||||||
echo "Not on gh-pages branch, exiting workflow."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "On gh-pages branch, continuing workflow."
|
|
||||||
- name: Config Git User
|
|
||||||
run: |
|
|
||||||
git config --local user.name "dragooncjw"
|
|
||||||
git config --local user.email "289056872@qq.com"
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
registry-url: 'https://registry.npmjs.org/'
|
|
||||||
- name: Rush Install
|
|
||||||
run: node common/scripts/install-run-rush.js install
|
|
||||||
- name: Rush build
|
|
||||||
run: node common/scripts/install-run-rush.js build
|
|
||||||
- name: Generate docs
|
|
||||||
run: |
|
|
||||||
cd apps/docs
|
|
||||||
npm run docs
|
|
||||||
- name: Copy auto-docs to en
|
|
||||||
run: cp -r apps/docs/src/zh/auto-docs apps/docs/src/en/auto-docs
|
|
||||||
- name: Build Doc site
|
|
||||||
run: |
|
|
||||||
cd apps/docs
|
|
||||||
npm run build
|
|
||||||
- name: Replace docs
|
|
||||||
run: |
|
|
||||||
rm -rf docs
|
|
||||||
mv apps/docs/doc_build docs
|
|
||||||
- name: Add CNAME
|
|
||||||
run: |
|
|
||||||
echo "flowgram.ai" > ./docs/CNAME
|
|
||||||
- name: Push code
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git add .
|
|
||||||
git commit -m "chore: update docs" -n
|
|
||||||
git push
|
|
||||||
|
|
||||||
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@ -3,7 +3,7 @@ on:
|
|||||||
workflow_dispatch
|
workflow_dispatch
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "gh-pages-branch-workflow" # 唯一标识符,确保只运行一个实例
|
group: "main-deploy-branch-workflow" # 唯一标识符,确保只运行一个实例
|
||||||
cancel-in-progress: false # 不取消正在运行的实例,后续触发需要等待当前实例完成
|
cancel-in-progress: false # 不取消正在运行的实例,后续触发需要等待当前实例完成
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -19,11 +19,11 @@ jobs:
|
|||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- name: Check if branch is main
|
- name: Check if branch is main
|
||||||
run: |
|
run: |
|
||||||
if [ "$GITHUB_REF" != "refs/heads/gh-pages" ]; then
|
if [ "$GITHUB_REF" != "refs/heads/main" ]; then
|
||||||
echo "Not on gh-pages branch, exiting workflow."
|
echo "Not on main branch, exiting workflow."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "On gh-pages branch, continuing workflow."
|
echo "On main branch, continuing workflow."
|
||||||
- name: Config Git User
|
- name: Config Git User
|
||||||
run: |
|
run: |
|
||||||
git config --local user.name "dragooncjw"
|
git config --local user.name "dragooncjw"
|
||||||
|
|||||||
@ -46,7 +46,6 @@
|
|||||||
"@flowgram.ai/ts-config": "workspace:*",
|
"@flowgram.ai/ts-config": "workspace:*",
|
||||||
"@flowgram.ai/eslint-config": "workspace:*",
|
"@flowgram.ai/eslint-config": "workspace:*",
|
||||||
"@eslint/js": "^9.12.0",
|
"@eslint/js": "^9.12.0",
|
||||||
"@rspress/plugin-playground": "^1.38.0",
|
|
||||||
"@rspress/plugin-typedoc": "^1.38.0",
|
"@rspress/plugin-typedoc": "^1.38.0",
|
||||||
"@types/node": "^18",
|
"@types/node": "^18",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import * as path from 'node:path';
|
import * as path from 'node:path';
|
||||||
|
|
||||||
import { defineConfig } from 'rspress/config';
|
import { defineConfig } from 'rspress/config';
|
||||||
import { pluginPlayground } from '@rspress/plugin-playground';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
root: path.join(__dirname, 'src'),
|
root: path.join(__dirname, 'src'),
|
||||||
@ -63,12 +62,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
lang: 'zh',
|
lang: 'zh',
|
||||||
logoText: 'FlowGram.AI',
|
logoText: 'FlowGram.AI',
|
||||||
plugins: [
|
plugins: [],
|
||||||
pluginPlayground({
|
|
||||||
defaultDirection: 'vertical',
|
|
||||||
include: [],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
localeRedirect: 'auto',
|
localeRedirect: 'auto',
|
||||||
footer: {
|
footer: {
|
||||||
|
|||||||
93
common/config/rush/pnpm-lock.yaml
generated
93
common/config/rush/pnpm-lock.yaml
generated
@ -98,7 +98,7 @@ importers:
|
|||||||
version: link:../../config/ts-config
|
version: link:../../config/ts-config
|
||||||
'@rspack/cli':
|
'@rspack/cli':
|
||||||
specifier: 0.2.1
|
specifier: 0.2.1
|
||||||
version: 0.2.1(react-refresh@0.14.0)(webpack@5.76.0)
|
version: 0.2.1(react-refresh@0.16.0)(webpack@5.76.0)
|
||||||
'@types/lodash-es':
|
'@types/lodash-es':
|
||||||
specifier: ^4.17.12
|
specifier: ^4.17.12
|
||||||
version: 4.17.12
|
version: 4.17.12
|
||||||
@ -162,7 +162,7 @@ importers:
|
|||||||
devDependencies:
|
devDependencies:
|
||||||
'@rspack/cli':
|
'@rspack/cli':
|
||||||
specifier: 0.2.1
|
specifier: 0.2.1
|
||||||
version: 0.2.1(react-refresh@0.16.0)(webpack@5.76.0)
|
version: 0.2.1(react-refresh@0.14.0)(webpack@5.76.0)
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^18
|
specifier: ^18
|
||||||
version: 18.19.68
|
version: 18.19.68
|
||||||
@ -427,9 +427,6 @@ importers:
|
|||||||
'@flowgram.ai/ts-config':
|
'@flowgram.ai/ts-config':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../config/ts-config
|
version: link:../../config/ts-config
|
||||||
'@rspress/plugin-playground':
|
|
||||||
specifier: ^1.38.0
|
|
||||||
version: 1.38.0(@rspress/core@1.38.0)(monaco-editor@0.52.2)(react-dom@18.3.1)(react-router-dom@6.28.0)(react@18.3.1)
|
|
||||||
'@rspress/plugin-typedoc':
|
'@rspress/plugin-typedoc':
|
||||||
specifier: ^1.38.0
|
specifier: ^1.38.0
|
||||||
version: 1.39.3(rspress@1.38.0)(typescript@5.0.4)
|
version: 1.39.3(rspress@1.38.0)(typescript@5.0.4)
|
||||||
@ -5508,6 +5505,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
monaco-editor: 0.52.2
|
monaco-editor: 0.52.2
|
||||||
state-local: 1.0.7
|
state-local: 1.0.7
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@monaco-editor/react@4.6.0(monaco-editor@0.52.2)(react-dom@18.3.1)(react@18.3.1):
|
/@monaco-editor/react@4.6.0(monaco-editor@0.52.2)(react-dom@18.3.1)(react@18.3.1):
|
||||||
resolution: {integrity: sha512-RFkU9/i7cN2bsq/iTkurMWOEErmYcY6JiQI3Jn+WeR/FGISH8JbHERjpS9oRuSOPvDMJI0Z8nJeKkbOs9sBYQw==}
|
resolution: {integrity: sha512-RFkU9/i7cN2bsq/iTkurMWOEErmYcY6JiQI3Jn+WeR/FGISH8JbHERjpS9oRuSOPvDMJI0Z8nJeKkbOs9sBYQw==}
|
||||||
@ -5520,6 +5518,7 @@ packages:
|
|||||||
monaco-editor: 0.52.2
|
monaco-editor: 0.52.2
|
||||||
react: 18.3.1
|
react: 18.3.1
|
||||||
react-dom: 18.3.1(react@18.3.1)
|
react-dom: 18.3.1(react@18.3.1)
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1:
|
/@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1:
|
||||||
resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}
|
resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}
|
||||||
@ -5554,65 +5553,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}
|
resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@oxidation-compiler/napi-darwin-arm64@0.2.0:
|
|
||||||
resolution: {integrity: sha512-Rl1b3hQuJV7hVCJGyJuoDZ8Wzbisn6eo/XGDNhAa5RgEcL+vS+XEu+V9O3nriZ4QFceRCRfthBbMAn9RjCuI+Q==}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [darwin]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi-darwin-x64@0.2.0:
|
|
||||||
resolution: {integrity: sha512-9dyEg0xH1+QxA1TQpEzd0ozulJe09/WCDxvdnQQcmkoDEO7UYzSEIfkfDq6YrtcoW2soTwWesLPCI0dU6GC0yg==}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [darwin]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi-linux-arm64-gnu@0.2.0:
|
|
||||||
resolution: {integrity: sha512-fW63tFsSKvb0Veu27FT0BXYgERaKfBsd0jcE92AUA3qJsLDKjoZmI7CAlCzl/A7EH06JO5xv/cYU8oYhhuVVeg==}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi-linux-x64-gnu@0.2.0:
|
|
||||||
resolution: {integrity: sha512-1Mba87C2cwIpZWobBwJrKkZaej7VGgYKBpLYR1751+mEYAD4gbHCF+12unbKBuVSZ8VCsLBz3cYuqDrqmoS8FA==}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi-win32-arm64-msvc@0.2.0:
|
|
||||||
resolution: {integrity: sha512-Zk3KIuN5sT/Td5ssNs3vodMLgFNpRSZgjttOAdFlZvHXS5Lq3MXL2frNtGKAv+otKC1HVglS/MUmq54Pbe5w9Q==}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [win32]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi-win32-x64-msvc@0.2.0:
|
|
||||||
resolution: {integrity: sha512-WChz7rTn4K2NMk9WzqA8ZOJ7sSpxceHS3kcD3c/3+9qSevfClYK5OolPYTLOxv/IUD+zfrNpq5+743ZM/POBbg==}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [win32]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
/@oxidation-compiler/napi@0.2.0:
|
|
||||||
resolution: {integrity: sha512-ba1oNr+2wm7lOH+P8uQFaEwb+4EbXwD/D+BbYeVjBUbA3eWXgfyyhm08VUeMaNIuyW+Hjz9oKvRtHLChZrevNQ==}
|
|
||||||
optionalDependencies:
|
|
||||||
'@oxidation-compiler/napi-darwin-arm64': 0.2.0
|
|
||||||
'@oxidation-compiler/napi-darwin-x64': 0.2.0
|
|
||||||
'@oxidation-compiler/napi-linux-arm64-gnu': 0.2.0
|
|
||||||
'@oxidation-compiler/napi-linux-x64-gnu': 0.2.0
|
|
||||||
'@oxidation-compiler/napi-win32-arm64-msvc': 0.2.0
|
|
||||||
'@oxidation-compiler/napi-win32-x64-msvc': 0.2.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@phosphor/algorithm@1.2.0:
|
/@phosphor/algorithm@1.2.0:
|
||||||
resolution: {integrity: sha512-C9+dnjXyU2QAkWCW6QVDGExk4hhwxzAKf5/FIuYlHAI9X5vFv99PYm0EREDxX1PbMuvfFBZhPNu0PvuSDQ7sFA==}
|
resolution: {integrity: sha512-C9+dnjXyU2QAkWCW6QVDGExk4hhwxzAKf5/FIuYlHAI9X5vFv99PYm0EREDxX1PbMuvfFBZhPNu0PvuSDQ7sFA==}
|
||||||
dev: false
|
dev: false
|
||||||
@ -6617,29 +6557,6 @@ packages:
|
|||||||
'@rspress/runtime': 1.38.0
|
'@rspress/runtime': 1.38.0
|
||||||
medium-zoom: 1.1.0
|
medium-zoom: 1.1.0
|
||||||
|
|
||||||
/@rspress/plugin-playground@1.38.0(@rspress/core@1.38.0)(monaco-editor@0.52.2)(react-dom@18.3.1)(react-router-dom@6.28.0)(react@18.3.1):
|
|
||||||
resolution: {integrity: sha512-7ycqsjoKZ/vA2apBwySU6daQtiGOuwFMD+A4WB3ZKP1JXIWSHOiIJ6vqA9H9XGXzHDgR36B0xvmd2R4aoskgYQ==}
|
|
||||||
engines: {node: '>=14.17.6'}
|
|
||||||
peerDependencies:
|
|
||||||
'@rspress/core': ^1.38.0
|
|
||||||
react: '>=17.0.0'
|
|
||||||
react-router-dom: ^6.8.1
|
|
||||||
dependencies:
|
|
||||||
'@mdx-js/mdx': 2.3.0
|
|
||||||
'@monaco-editor/react': 4.6.0(monaco-editor@0.52.2)(react-dom@18.3.1)(react@18.3.1)
|
|
||||||
'@oxidation-compiler/napi': 0.2.0
|
|
||||||
'@rspress/core': 1.38.0(webpack@5.76.0)
|
|
||||||
'@rspress/shared': 1.38.0
|
|
||||||
react: 18.3.1
|
|
||||||
react-router-dom: 6.28.0(react-dom@18.3.1)(react@18.3.1)
|
|
||||||
remark-gfm: 3.0.1
|
|
||||||
rspack-plugin-virtual-module: 0.1.13
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- monaco-editor
|
|
||||||
- react-dom
|
|
||||||
- supports-color
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@rspress/plugin-typedoc@1.39.3(rspress@1.38.0)(typescript@5.0.4):
|
/@rspress/plugin-typedoc@1.39.3(rspress@1.38.0)(typescript@5.0.4):
|
||||||
resolution: {integrity: sha512-wc8pdbMgfyOeXZm72fK3OchM7TQa6lCneBb5/LsJTpuzLjxP08MqS6U6wfQGj0RXNlrbyKYfdTKUEPlzvY5WYA==}
|
resolution: {integrity: sha512-wc8pdbMgfyOeXZm72fK3OchM7TQa6lCneBb5/LsJTpuzLjxP08MqS6U6wfQGj0RXNlrbyKYfdTKUEPlzvY5WYA==}
|
||||||
engines: {node: '>=14.17.6'}
|
engines: {node: '>=14.17.6'}
|
||||||
@ -12884,6 +12801,7 @@ packages:
|
|||||||
|
|
||||||
/monaco-editor@0.52.2:
|
/monaco-editor@0.52.2:
|
||||||
resolution: {integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==}
|
resolution: {integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/mri@1.2.0:
|
/mri@1.2.0:
|
||||||
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
|
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
|
||||||
@ -14818,6 +14736,7 @@ packages:
|
|||||||
|
|
||||||
/state-local@1.0.7:
|
/state-local@1.0.7:
|
||||||
resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==}
|
resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/static-browser-server@1.0.3:
|
/static-browser-server@1.0.3:
|
||||||
resolution: {integrity: sha512-ZUyfgGDdFRbZGGJQ1YhiM930Yczz5VlbJObrQLlk24+qNHVQx4OlLcYswEUo3bIyNAbQUIUR9Yr5/Hqjzqb4zA==}
|
resolution: {integrity: sha512-ZUyfgGDdFRbZGGJQ1YhiM930Yczz5VlbJObrQLlk24+qNHVQx4OlLcYswEUo3bIyNAbQUIUR9Yr5/Hqjzqb4zA==}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user