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 Pages

docs-build:
  image: ...
  needs: []
  script:
  - ...
  artifacts:
    paths:
    - public

pages:
  image: ...
  needs: [docs-build]
  script:
  - echo Deploying Pages
  artifacts:
    paths:
    - public
  rules:
    # Deploy only on push to master
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

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>