Skip to content

WIP: Add documentation site with Material for MkDocs #8

WIP: Add documentation site with Material for MkDocs

WIP: Add documentation site with Material for MkDocs #8

Workflow file for this run

name: Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -e ".[docs]"
- name: Build documentation
if: github.event_name == 'pull_request'
run: mkdocs build --strict
- name: Deploy documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: mkdocs gh-deploy --force