Publish Docs
The repository includes a MkDocs Material configuration and a GitHub Actions workflow for GitHub Pages.
Local preview
Install MkDocs Material:
pip install mkdocs-material
Serve the docs locally:
mkdocs serve
Open:
http://127.0.0.1:8000
Build the static site:
mkdocs build --strict
The generated site is written to site/.
GitHub Pages setup
- Push the repository to GitHub.
- Open the repository settings.
- Go to
Pages. - Under
Build and deployment, set the source toGitHub Actions. - Push to the default branch.
- Open the
Deploy Trimmy docsworkflow run. - When it finishes, open the Pages URL shown by GitHub.
For this repository, the expected URL is:
https://musantro.github.io/trimmy/
Manual publish alternative
You can also publish from your machine with:
pip install mkdocs-material
mkdocs gh-deploy --force
That command builds the site and pushes it to the gh-pages branch.