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
12 changes: 11 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: docs
on:
push:
branches: [main]
pull_request:
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/docs.yml"

permissions:
contents: write
Expand All @@ -18,12 +23,17 @@ jobs:
with:
python-version: "3.x"

- run: pip install mkdocs-material mdx-truly-sane-lists mike
- run: pip install -r docs/requirements.txt

- name: Build docs (validation)
run: mkdocs build --strict

- name: Configure git
if: github.ref == 'refs/heads/main'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: Deploy main docs
if: github.ref == 'refs/heads/main'
run: mike deploy --push --update-aliases main
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ tasks:
cmds:
- git-cliff -o CHANGELOG.md

docs:install:
desc: Install documentation dependencies
cmds:
- pip install -r docs/requirements.txt

docs:
desc: Serve documentation locally
cmds:
Expand Down
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdocs-material
mdx-truly-sane-lists
mike
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ theme:
name: material
logo: assets/topf.png
favicon: assets/topf.png
features:
- content.code.copy
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand Down