Documentation
- Documentation is written in markdown format and files are kept in the
/docs
directory in the project root. - API documentation is auto-generated by the
mkdocstrings
package. An example of this can be seen in thereference.md
file. - New files must be added to the table of context in
/mkdocs.yml
.
Develop
-
Make changes on a development branch
-
Run the following command to render and serve documentation locally
docker-compose run --rm --service-ports mkdocs
-
Visit the local documentation to see your changes while developing
http://localhost:8000 -
Push this branch, get approval and merge to the
main
branch
Publish
-
Pull down the
gh-pages
branch. This only needs to be done oncegit checkout --track origin/gh-pages
-
Run the
publish_documentation
script./publish_documentation.sh
-
Visit the hosted documentation
https://wayfair-incubator.github.io/extra-model/site/