Skip to content

Commit b5614d7

Browse files
committed
0.02
1 parent b638c7f commit b5614d7

3 files changed

Lines changed: 38 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
24+
- uses: actions/cache@v4
25+
with:
26+
key: ${{ github.ref }}
27+
path: .cache
28+
29+
- name: Install dependencies
30+
run: pip install -r requirements.txt
31+
32+
- name: Deploy
33+
run: mkdocs gh-deploy --force

docs/mkdocs.yml renamed to mkdocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
site_name: QrCraft 开发文档
2-
site_url: https://github.com/USERNAME/qrcraft
2+
# site_url: https://github.com/USERNAME/qrcraft
33
site_description: Qt/C++/QML 开发文档与组件库
44

5-
# 文档根目录设为当前目录
6-
docs_dir: .
5+
# 文档根目录设为 docs 目录
6+
docs_dir: docs
77

88
theme:
99
name: material

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mkdocs-material
2+
mkdocs

0 commit comments

Comments
 (0)