Sphinx tutorial


Contents

  1. Environment setup
  2. Getting started with Sphinx
  3. reStructuredText basics
  4. Documenting your API
  5. Generating HTML docs from docstrings
  6. Selecting a theme
  7. Hosting on GitHub Pages
  8. Automating documentation updates
  9. Versioning
  10. Automating versioning
  11. Glossary
  12. Further reading

Workshop overview

This workshop will walk you through the steps of using the Sphinx tool for documentation generation for a Python API, hosting them on GitHub pages and automatically creating new versions on code updates.

Accompanying the instructions there is this example project where you can find some sample code to serve as a base for the rest of the workshop.

Moreover, all the steps of the tutorial have been applied in corresponding commits and branches, so if anything doesnโ€™t quite work for you, you can refer to a previous/next step branch by using git checkout (or browse the branch on GitHub) and continuing from there.

Next: Environment setup