Skip to content

Commit b732c00

Browse files
committed
fix: ensure .nojekyll is deployed to gh-pages branch
- Revert to mkdocs gh-deploy workflow for gh-pages branch deployment - Add extra_files configuration to include .nojekyll in deployment - This will disable Jekyll processing on the gh-pages branch
1 parent 6caf4c6 commit b732c00

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
run: |
2727
pip install mkdocs-material mkdocs-git-revision-date-localized-plugin pymdown-extensions mkdocs-mermaid2-plugin
2828
29-
- name: Build and deploy to GitHub Pages
29+
- name: Configure git for deployment
3030
run: |
3131
git config --global user.name "github-actions[bot]"
3232
git config --global user.email "github-actions[bot]@users.noreply.github.com"
33-
mkdocs gh-deploy --force --clean
33+
34+
- name: Build and deploy to gh-pages branch
35+
run: mkdocs gh-deploy --force --clean
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ plugins:
4848
type: date
4949
- mermaid2
5050

51+
extra_files:
52+
- .nojekyll
53+
5154
markdown_extensions:
5255
- pymdownx.highlight:
5356
anchor_linenums: true

0 commit comments

Comments
 (0)