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: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: local
hooks:
- id: mkdocs-build
name: mkdocs build
language: python
additional_dependencies: [mkdocs-material]
entry: bash -c 'mkdocs build -q; rc=$?; rm -rf site; exit $rc'
pass_filenames: false
always_run: true
stages: [pre-commit]
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contributing

## Development

Run `pre-commit install` once per clone to install the commit and push hooks.

- Commit hooks build the docs with mkdocs, matching CI.
- Run everything with `pre-commit run --all-files --hook-stage pre-push`.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ mkdocs serve # http://127.0.0.1:8000
1. Add the repo name to the `for repo in ...` list in the `sync-readmes` job.
2. Add a nav entry to `mkdocs.yml` and a card to `docs/index.md`.
3. Run the workflow with `workflow_dispatch`.

## Development

Run `pre-commit install` once per clone to install the commit and push hooks.

- Commit hooks build the docs with mkdocs, matching CI.
- Run everything with `pre-commit run --all-files --hook-stage pre-push`.