We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33df65f commit cac7233Copy full SHA for cac7233
.github/workflows/deploy.yml
@@ -0,0 +1,29 @@
1
+name: Deploy MkDocs to GitHub Pages with local extension
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # 或你的默认分支
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v3
15
16
+ - name: Setup Python
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: '3.11'
20
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install -r requirements.txt
25
+ pip install -e ./extensions # 安装本地 MkDocs 扩展
26
27
+ - name: Build and deploy MkDocs
28
29
+ mkdocs gh-deploy --force
requirements.txt
@@ -0,0 +1,2 @@
+mkdocs
+mkdocs-material
0 commit comments