Skip to content

Commit 1c00f67

Browse files
authored
Merge pull request #590 from GraphScope/fix-style
chore: Fix StyleSetting issue
2 parents 936f8fa + 4aacd81 commit 1c00f67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+25116
-641
lines changed

.dumirc.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { defineConfig } from 'dumi';
22
import { join } from 'path';
33
import { defineThemeConfig } from 'dumi-theme-antd/dist/defineThemeConfig';
4+
5+
const isProduction = process.env.NODE_ENV === 'production';
6+
const basePath = isProduction ? '/portal/' : '/';
7+
48
const themeConfig = defineThemeConfig({
59
name: 'GraphScope',
610
title: 'GraphScope Portal',
@@ -156,6 +160,8 @@ const themeConfig = defineThemeConfig({
156160
],
157161
});
158162
export default defineConfig({
163+
base: basePath,
164+
publicPath: basePath,
159165
title: 'GraphScope',
160166
favicons: ['https://img.alicdn.com/imgextra/i3/O1CN01DaSVLB1lD7ZIbDOi2_!!6000000004784-2-tps-256-257.png'], // 网站 favicon
161167
metas: [
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Deploy Portal Docs Website
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
run_install: false
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 9
29+
run_install: false
30+
31+
- name: Cache pnpm modules
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
.pnpm-store
36+
node_modules
37+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-
40+
41+
- name: Install dependencies
42+
run: pnpm install
43+
44+
- name: Build assets
45+
run: pnpm run build:docs:portal
46+
47+
- name: Deploy to GitHub Pages
48+
uses: peaceiris/actions-gh-pages@v3
49+
with:
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
publish_dir: ./dist # 替换为你的构建输出目录
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Prepare Publish npm packages
2+
on:
3+
push:
4+
branches:
5+
- '**' # 匹配所有分支
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
# 当具有 release 标签的 PR 被合并时,自动发布包版本
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
24+
run_install: false
25+
26+
- name: Cache pnpm modules
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
.pnpm-store
31+
node_modules
32+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Publish
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} & pnpm run check:publish

docs/components/.fatherrc.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/components/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/components/package.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/components/src/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/components/tsconfig.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)