Skip to content

Commit ce4822d

Browse files
committed
fix: broken css
1 parent 3ee9abe commit ce4822d

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

.github/workflows/deploy.yml

+6-27
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,20 @@ on:
55
branches: ["main"]
66
workflow_dispatch:
77

8-
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
12-
13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: false
16-
178
jobs:
18-
build:
9+
build-and-deploy:
1910
runs-on: ubuntu-latest
20-
strategy:
21-
matrix:
22-
node-version: [20]
2311
steps:
2412
- uses: actions/checkout@v4
2513

2614
- uses: pnpm/action-setup@v2
2715
with:
2816
version: 8
2917

30-
- name: Use Node.js ${{ matrix.node-version }}
18+
- name: Setup Node.js
3119
uses: actions/setup-node@v3
3220
with:
33-
node-version: ${{ matrix.node-version }}
21+
node-version: 20
3422
cache: "pnpm"
3523

3624
- name: Install dependencies
@@ -40,16 +28,7 @@ jobs:
4028
run: pnpm build
4129

4230
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v1
31+
uses: peaceiris/actions-gh-pages@v3
4432
with:
45-
path: "out"
46-
deploy:
47-
environment:
48-
name: github-pages
49-
url: ${{ steps.deployment.outputs.page_url }}
50-
runs-on: ubuntu-latest
51-
needs: build
52-
steps:
53-
- name: Deploy to GitHub Pages
54-
id: deployment
55-
uses: actions/deploy-pages@v3
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: out

next.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const withNextra = require('nextra')({
44
});
55

66
module.exports = withNextra({
7+
basePath: process.env.GITHUB_ACTIONS && '/CommandReference',
78
output: 'export',
9+
trailingSlash: true,
810
images: {
911
unoptimized: true
1012
}

public/.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)