@@ -14,6 +14,7 @@ A Python project template that comes out of the box with configuration for:
1414- Automated dependency update using [ Dependabot] ( https://docs.github.com/en/code-security/dependabot )
1515- Dockerized development environment using [ Dev containers] ( https://code.visualstudio.com/docs/devcontainers/containers )
1616- Automatic documentation from code using [ mkdocs] ( https://www.mkdocs.org ) and [ mkdocstrings] ( https://mkdocstrings.github.io )
17+ - Documentation auto-deployment to [ GiHub Pages] ( https://pages.github.com )
1718- App container using [ Docker] ( https://docker.com )
1819
1920## How to use
@@ -112,10 +113,14 @@ docker compose run app -h
112113```
113114
114115## Generating documentation
115- To generate the project documentation, run:
116+ To generate and publish the project documentation to GitHub pages , run:
116117``` bash
117118make docs
118119```
120+ That pushes the new documentation to the gh-pages branch.
121+ Make sure GitHub Pages is enableed in your repository settings and using the gh-pages branch for the documentation to be publicly available.
122+
123+ ### Local
119124To serve the documentation on a local server, run:
120125``` bash
121126make local
@@ -131,7 +136,8 @@ make local
131136│ ├── dependabot.yaml # Dependabot configuration
132137│ ├── FUNDING.md # GitHub funding
133138│ └── workflows # Github Actions Workflows
134- │ └── check.yml # Workflow to validate code on push
139+ | ├── check.yml # Workflow to validate code on push
140+ │ └── docs.yml # Woukflow to publish documentation
135141├── .gitignore # Git-ignored file list
136142├── .pre-commit-config.yaml # Pre-commit configuration file
137143├── .flake8 # flake8 configuration file
0 commit comments