Skip to content

Commit 3fb95aa

Browse files
committed
[Fix] docusaurus setup
1 parent 38b08c5 commit 3fb95aa

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/deploy-to-github-pages.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717

18-
- name: Install and Build website
18+
- name: Setup node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 21
22+
cache: npm
23+
24+
- name: Install dependencies
1925
run: |
20-
npm ci
21-
npm run build
26+
npm install
2227
28+
- name: Build website
29+
run: |
30+
npm run build
31+
2332
- name: Deploy to GitHub Pages
2433
uses: JamesIves/github-pages-deploy-action@v4
2534
with:

docusaurus.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const config = {
4040
sidebarPath: './sidebars.js',
4141
remarkPlugins: [remarkMath],
4242
rehypePlugins: [rehypeKatex],
43-
routeBasePath: "/",
4443
},
4544
theme: {
4645
customCss: './src/css/custom.scss',

0 commit comments

Comments
 (0)