Skip to content

Commit ce4fcb2

Browse files
committed
ci: 更新构建和部署配置,升级 Node.js 版本至 20,移除 Python 相关步骤,优化 CSS 导入,添加 Tailwind CSS 配置,更新首页重定向逻辑
Change-Id: I980d76bbd634f6fd9f3b320f47007c868a7c3823
1 parent 40863da commit ce4fcb2

File tree

8 files changed

+36
-715
lines changed

8 files changed

+36
-715
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
NODE_VERSION: '18'
12-
PYTHON_VERSION: '3.11'
11+
NODE_VERSION: '20'
1312

1413
jobs:
1514
build-and-deploy:
@@ -26,24 +25,9 @@ jobs:
2625
cache: 'npm'
2726
cache-dependency-path: package-lock.json
2827

29-
- name: 设置 Python
30-
uses: actions/setup-python@v5
31-
with:
32-
python-version: ${{ env.PYTHON_VERSION }}
33-
34-
- name: 拉取 Python SDK
35-
run: |
36-
mkdir -p sdk
37-
git clone --depth 1 --branch main \
38-
https://github.com/Serverless-Devs/agentrun-sdk-python.git \
39-
sdk/python
40-
4128
- name: 安装依赖
4229
run: npm ci
4330

44-
- name: 生成 API 文档
45-
run: python3 scripts/generate_api_docs.py --sdk-path sdk/python
46-
4731
- name: 构建静态文档
4832
run: npm run build
4933

@@ -61,9 +45,6 @@ jobs:
6145
-k ${{ secrets.OSS_ACCESS_KEY_SECRET }}
6246
6347
- name: 部署到阿里云 OSS
64-
run: ./ossutil64 cp -r build/ oss://${{ secrets.OSS_BUCKET }}/ -f
65-
66-
- name: 部署完成
6748
run: |
49+
./ossutil64 cp -r build/ oss://${{ secrets.OSS_BUCKET }}/ -f
6850
echo "✅ 文档已成功部署到阿里云 OSS"
69-
echo "🌐 访问地址: https://${{ secrets.OSS_BUCKET }}.${{ secrets.OSS_ENDPOINT }}"

docusaurus.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const config: Config = {
7070
logo: {
7171
alt: 'AgentRun',
7272
src: 'img/logo.svg',
73+
href: "https://www.agent.run"
7374
},
7475
items: [
7576
{

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@docusaurus/types": "3.9.2",
3030
"@tailwindcss/postcss": "^4.1.17",
3131
"postcss": "^8.5.6",
32-
"tailwindcss": "^4.1.17",
3332
"typescript": "~5.6.2"
3433
},
3534
"browserslist": {

src/css/custom.css

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
* work well for content-centric websites.
55
*/
66

7-
@import 'tailwindcss';
7+
@layer theme, base, components, utilities;
8+
@import 'tailwindcss/theme.css' layer(theme) important;
9+
@import 'tailwindcss/utilities.css' layer(utilities) important;
10+
/* @plugin 'tailwindcss-animate'; */
11+
12+
/* @import 'tailwindcss'; */
13+
/* @import 'tailwindcss/preflight'; */
14+
/* @tailwind utilities; */
815

916
@custom-variant dark (&:is([data-theme="dark"] *));
1017

@@ -20,28 +27,14 @@
2027
}
2128

2229
/* For readability concerns, you should choose a lighter palette in dark mode. */
23-
[data-theme='dark'] {
24-
:root {
25-
--ifm-color-primary: #0241ff;
26-
--ifm-color-primary-dark: #003ae7;
27-
--ifm-color-primary-darker: #0036da;
28-
--ifm-color-primary-darkest: #002db4;
29-
--ifm-color-primary-light: #1c54ff;
30-
--ifm-color-primary-lighter: #295eff;
31-
--ifm-color-primary-lightest: #4f7bff;
32-
}
33-
}
34-
35-
a,
36-
a:hover {
37-
color: var(--ifm-color-primary);
38-
cursor: pointer;
39-
}
40-
41-
[data-theme='dark'] a,
42-
[data-theme='dark'] a:hover {
43-
color: white;
44-
cursor: pointer;
30+
:root[data-theme='dark'] {
31+
--ifm-color-primary: #a7c2f3;
32+
--ifm-color-primary-dark: #83a9ee;
33+
--ifm-color-primary-darker: #719cec;
34+
--ifm-color-primary-darkest: #3b77e4;
35+
--ifm-color-primary-light: #cbdbf8;
36+
--ifm-color-primary-lighter: #dde8fa;
37+
--ifm-color-primary-lightest: #ffffff;
4538
}
4639

4740
.index-page {
@@ -50,17 +43,6 @@ a:hover {
5043
}
5144
}
5245

53-
img,
54-
svg,
55-
video,
56-
canvas,
57-
audio,
58-
iframe,
59-
embed,
60-
object {
61-
display: unset;
62-
}
63-
6446
.header-github-link {
6547
display: flex;
6648
gap: 4px;

0 commit comments

Comments
 (0)