Skip to content

Commit f84b700

Browse files
committed
ci: Update CI workflow and Docusaurus config
- Change deployment path for Docusaurus build - Enable color mode switch in Docusaurus config
1 parent a1c3617 commit f84b700

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
# Install dependencies and build Docusaurus website using Bun
3434
- name: Build Docusaurus website
3535
run: |
36+
cd template
3637
bun install
3738
bun run build
3839
@@ -51,4 +52,4 @@ jobs:
5152
# Deploy with rsync
5253
- name: Deploy with rsync
5354
run: |
54-
rsync -avz -e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa" ./build/ root@info.ourworld.tf:/root/hero/www/info/testdocs/
55+
rsync -avz -e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa" ./template/build/ root@info.ourworld.tf:/root/hero/www/info/testdocs/

template/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const config: Config = {
8383
colorMode:
8484
{
8585
"defaultMode": "dark",
86-
"disableSwitch": true,
86+
"disableSwitch": false,
8787
"respectPrefersColorScheme": false
8888
},
8989
image: main.image,

0 commit comments

Comments
 (0)