Skip to content

Commit

Permalink
adjust scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhizhou committed Dec 7, 2023
1 parent 3a09f5c commit 93e6e9d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- "master"
paths:
- "docs/**"
- "mkdocs.*.yml"
- "config/**"
- "overrides/**"

workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion config/mkdocs.extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extra:
link: https://github.com/wangzhizhou
generator: false
# version:
# provider: mike
# provider: mike

markdown_extensions:
- abbr
Expand Down
2 changes: 1 addition & 1 deletion publish
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ else
source "$VENV/bin/activate"
fi
git push origin
mkdocs gh-deploy --force
mkdocs gh-deploy --force -f config/mkdocs.yml
2 changes: 1 addition & 1 deletion serve
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "SERVE IP: ${SERVE_IP}"
VENV="vblogenv"
if [ -d "$VENV" ]; then
source "$VENV/bin/activate"
mkdocs serve
mkdocs serve -f config/mkdocs.yml
else
./setup
fi
Expand Down
4 changes: 2 additions & 2 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ python3 -m venv --clear vblogenv
source vblogenv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
mkdocs build --clean
mkdocs serve
mkdocs build --clean -f config/mkdocs.yml
mkdocs serve -f config/mkdocs.yml

0 comments on commit 93e6e9d

Please sign in to comment.