Skip to content

Commit f2d09cd

Browse files
committed
使用 dirhtml
1 parent 68db8b9 commit f2d09cd

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/deploy_github_pages.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Python
2222
uses: actions/setup-python@v5.0.0
2323
with:
24-
python-version: "3.11"
24+
python-version: '3.11'
2525

2626
- name: Checkout sources
2727
uses: actions/checkout@v4.1.1
@@ -39,17 +39,17 @@ jobs:
3939
- name: Replace question-board.readthedocs.io/ to feignclaims.github.io/question_board/
4040
uses: jacobtomlinson/gha-find-replace@v3
4141
with:
42-
include: "main/conf.py"
42+
include: 'main/conf.py'
4343
find: '"https://question-board.readthedocs.io/"'
4444
replace: '"https://feignclaims.github.io/question_board/"'
4545
regex: false
4646

4747
- name: Show mirror website
4848
uses: jacobtomlinson/gha-find-replace@v3
4949
with:
50-
include: "main/index.rst"
51-
find: "`本网站的国外备用网址 (不支持搜索) <https://feignclaims.github.io/vscode_cpp_starter/>`_"
52-
replace: "`本网站的国外主网址 (支持搜索) <https://vscode-cpp-starter.readthedocs.io/>`_"
50+
include: 'main/index.rst'
51+
find: '`本网站的国外备用网址 (不支持搜索) <https://feignclaims.github.io/vscode_cpp_starter/>`_'
52+
replace: '`本网站的国外主网址 (支持搜索) <https://vscode-cpp-starter.readthedocs.io/>`_'
5353
regex: false
5454

5555
- name: Install sphinx
@@ -61,24 +61,24 @@ jobs:
6161
shell: bash
6262
run: |
6363
rm -rf github_docs/build
64-
sphinx-build main github_docs/build
64+
sphinx-build -b dirhtml main github_docs/build
6565
6666
- name: Commit changes
6767
uses: EndBug/add-and-commit@v9.1.3
6868
with:
6969
cwd: github_docs
70-
commit: "--amend"
71-
push: "--force"
70+
commit: '--amend'
71+
push: '--force'
7272
default_author: github_actions
73-
message: "[bot] Build github pages"
73+
message: '[bot] Build github pages'
7474

7575
- name: Setup Github Pages
7676
uses: actions/configure-pages@v5
7777

7878
- name: Upload Github Artifact
7979
uses: actions/upload-pages-artifact@v3
8080
with:
81-
path: "github_docs/build"
81+
path: 'github_docs/build'
8282

8383
- name: Build Github Pages
8484
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)