Source for the Sarah and Patrick Wills Foundation site, built with MkDocs and the Material theme.
Site content lives in docs/.
- Update page content in
docs/*.md - Update navigation in
mkdocs.yml - Do not commit the generated
site/directory
The custom domain is kept in docs/CNAME so it is included in the built site.
python3 -m pip install -r requirements.txt
python3 -m mkdocs serveThen open the local URL shown by MkDocs, usually http://127.0.0.1:8000/.
Deployment is handled by GitHub Actions from .github/workflows/deploy.yml.
On every push to main, the workflow:
- Checks out the repo
- Installs the pinned MkDocs dependencies from
requirements.txt - Runs
mkdocs build - Uploads the generated
site/directory as a GitHub Pages artifact - Deploys that artifact to GitHub Pages with
actions/deploy-pages
This repository now uses the GitHub Pages workflow-based deployment model rather than mkdocs gh-deploy pushing directly to gh-pages.
The repository Pages configuration should be set to publish from GitHub Actions.
Current production URL:
https://spwf.org.uk/
If a deployment breaks:
- Revert the relevant commit on
main - Push the revert
- Wait for the Pages workflow to publish the previous content
If the workflow itself is broken, fix .github/workflows/deploy.yml on main and push again.