Skip to content

Commit eeeb686

Browse files
committed
ci
1 parent 0394db8 commit eeeb686

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
name: docs
22

33
on:
4-
# 手动触发部署
5-
workflow_dispatch:
4+
push:
5+
branches:
6+
- docs
7+
paths:
8+
- 'docs/**'
9+
- '.github/workflows/deploy-docs.yml'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'docs/**'
15+
- '.github/workflows/deploy-docs.yml'
616

717
jobs:
818
docs:

docs/.vitepress/config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ export default withPwa(defineConfig({
4040
],
4141
lastUpdated: true,
4242
markdown: {
43-
theme: {
44-
light: 'vitesse-dark',
45-
dark: 'vitesse-dark',
46-
},
43+
theme: 'vitesse-dark',
4744
},
4845
themeConfig: {
4946
logo: '/logo.png',

docs/public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usepy.code05.com

0 commit comments

Comments
 (0)