Contributing to Documentation
Note
Cheatsheet for anyone who edits, deploys, or rolls back the Evidential docs site
Repo: github.com/agency-fund/evidential-docs
Live site: https://docs.evidential.dev
We use MkDocs to build our project docs, along with the Material theme and custom overrides.
Getting Started
-
Install uv
-
Install Taskfile
-
Clone and switch to source branch:
-
Install dependencies:
-
Install precommit hooks to this repo:
-
Preview locally by starting a local server at http://localhost:8071:
Routine content update & deploy
After publishing changes and merging the PR into the docs branch, the site will be automatically deployed by GitHub Actions via the deploy-docs.yaml workflow.
You can monitor deployment progress in the Actions tab on GitHub.
The docs branch holds the source.
The gh-pages branch holds the built site and the CNAME file.
Safe rollback
Revert a broken deploy. Besides reverting to previous or known commit:
🏷️ Tag known-good states
Before deploying a major change, tag the source commit so you can easily roll back:
You can then revert the live site to that state: