Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: docs

on:
push:
branches:
- main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'AI_STATUS.md'
- 'CONTRIBUTING.md'
- '.github/workflows/docs.yml'
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip

- name: Install docs dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt

- name: Build site (strict — fail on dead links / missing nav entries)
run: mkdocs build --strict

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: gh-pages
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ installer_output/
*.egg-info/
.eggs/

# MkDocs build output
site/

# Virtual environments
.venv/
venv_clean/
Expand Down
Loading
Loading