docs: Refine MkDocs configuration and GitHub Actions deployment
- Update site name, description, and documentation structure - Enhance MkDocs theme features and navigation - Modify documentation navigation to use nested structure - Improve GitHub Actions workflow with more robust deployment steps - Add site directory configuration for GitHub Pages
This commit is contained in:
14
.github/workflows/deploy-docs.yml
vendored
14
.github/workflows/deploy-docs.yml
vendored
@@ -14,13 +14,21 @@ jobs:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
cache: 'pip'
|
||||
- run: pip install -r docs/requirements.txt
|
||||
- name: Deploy Documentation
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r docs/requirements.txt
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
mkdocs gh-deploy --force
|
||||
- name: Build and Deploy
|
||||
run: |
|
||||
mkdocs build --strict
|
||||
mkdocs gh-deploy --force --clean
|
||||
Reference in New Issue
Block a user