Using GitHub Pages and MKDocs.
This site is configured to be saved in the main branch and served from the
gh-pages branch, both from the root directory.
Run from root dir, containing mkdocs.yml.
Serve docs site to browser for dev, available at http://localhost:8000/
mkdocs serve
Build a static site into the site dir
mkdocs build --clean
Build and deploy static site into GitHub Pages
mkdocs gh-deploy --clean
- Ensure all changes are on the
mainbranch. - Deploy changes to GitHub Pages by running
mkdocs gh-deploy --clean. - Do not edit the contents on the
gh-pagesbranch manually, any changes here will be lost at the next deployment.