Good looking theme: Furo

Q: How to serve live preview on Windows without going crazy?

  • A: Use WSL and then it’s straightforward

Q: Example of Sphinx->GitLab pages CI?

Q: Example of Sphinx->GitHub Pages CI?

Alternatives

GitLab: Publish docs on tag push, use tag name as version

.gitlab-ci.yml

my_job:
  (...)
  only:
    - tags

config.py

import os

(...)

version = os.getenv("CI_COMMIT_TAG", default=None)
release = version

(...)

# This is the default, but just to be sure:
# html_theme_options = {
#     'display_version': True,
# }

Issue: sphinx-autobuild doesn’t refresh on Python code change

Add --watch=<dir>