.readthedocs.yaml 866 B

1234567891011121314151617181920212223242526272829
  1. # .readthedocs.yaml
  2. # Read the Docs configuration file
  3. # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
  4. # Thank you also https://browniebroke.com/blog/specify-docs-dependency-groups-with-poetry-and-read-the-docs/
  5. # Required
  6. version: 2
  7. # Set the version of Python and other tools you might need
  8. build:
  9. os: ubuntu-22.04
  10. tools:
  11. python: "3.11"
  12. jobs:
  13. post_create_environment:
  14. - pip install poetry
  15. - poetry config virtualenvs.create false
  16. post_install:
  17. # RtD seems to be not happy with poetry installs,
  18. # hence use pip directly instead.
  19. - poetry export -f requirements.txt --output requirements.txt --with docs
  20. - python -m pip install -r requirements.txt
  21. - python -m pip install .
  22. - python -m pip list
  23. # Set sphinx configuration
  24. sphinx:
  25. configuration: docs/source/conf.py