Skip to content

Commit f1aaa90

Browse files
committed
docs: update pages
1 parent 6f34930 commit f1aaa90

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/pages.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ on:
44
push:
55
branches:
66
- main
7-
# Review gh actions docs if you want to further define triggers, paths, etc
8-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
97

108
jobs:
119
build:
1210
name: Build Docusaurus
1311
runs-on: ubuntu-latest
1412
defaults:
1513
run:
16-
working-directory: website # 设置默认工作目录
14+
working-directory: website
1715
steps:
1816
- uses: actions/checkout@v4
1917
with:
@@ -22,7 +20,7 @@ jobs:
2220
with:
2321
node-version: 22
2422
cache: yarn
25-
cache-dependency-path: website/yarn.lock # 指定 yarn.lock 的路径
23+
cache-dependency-path: website/yarn.lock
2624

2725
- name: Install dependencies
2826
run: yarn install --frozen-lockfile
@@ -33,22 +31,17 @@ jobs:
3331
- name: Upload Build Artifact
3432
uses: actions/upload-pages-artifact@v3
3533
with:
36-
path: website/build # 构建输出路径
34+
path: website/build
3735

3836
deploy:
3937
name: Deploy to GitHub Pages
4038
needs: build
41-
42-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
4339
permissions:
44-
pages: write # to deploy to Pages
45-
id-token: write # to verify the deployment originates from an appropriate source
46-
47-
# Deploy to the github-pages environment
40+
pages: write
41+
id-token: write
4842
environment:
4943
name: github-pages
5044
url: ${{ steps.deployment.outputs.page_url }}
51-
5245
runs-on: ubuntu-latest
5346
steps:
5447
- name: Deploy to GitHub Pages

website/docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const config: Config = {
1515
},
1616

1717
// Set the production url of your site here
18-
url: 'https://your-docusaurus-site.example.com',
18+
url: 'https://coding-hui.github.io',
1919
// Set the /<baseUrl>/ pathname under which your site is served
2020
// For GitHub pages deployment, it is often '/<projectName>/'
21-
baseUrl: '/',
21+
baseUrl: '/ai-terminal/',
2222

2323
// GitHub pages deployment config.
2424
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)