Reusable code for setting up Sphinx and a github.io website for a repository.
- Fill in the parameters in docs/PARAMS.yml.
- Adjust the parameters in docs/Makefile to match those in docs/PARAMS.yml
- Update links and titles in docs/index.rst with those appropriate for your project.
- Create a gh-pages branch
git checkout --orphan gh-pages git rm --cached -r . git commit -m "Initial commit" --allow-empty git push -u origin gh-pages
- Install pip requirements (ideally in a virtualenv)
virtualenv -p python3 venv source venv/bin/activate pip install -r docs/require.txt
- Run make_docs.py
python docs/make_docs.py
After the first time setup, all you need to run is python make_docs.py