Documentation
- Documentation is written in markdown format and files are kept in the
/docsdirectory in the project root. - API documentation is auto-generated by the
mkdocstringspackage. An example of this can be seen in thereference.mdfile. - 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
mainbranch
Publish
-
Pull down the
gh-pagesbranch. This only needs to be done oncegit checkout --track origin/gh-pages -
Run the
publish_documentationscript./publish_documentation.sh -
Visit the hosted documentation
https://wayfair-incubator.github.io/extra-model/site/