# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
  os: ubuntu-24.04
  tools:
    python: "3.12"
    # The "latest" rust version of read the docs is usually
    # quite old. We install the latest version with asdf below.
    #
    # rust: "latest"
  apt_packages:
    - gfortran
  jobs:
    pre_create_environment:
      - asdf install rust latest
      - asdf global rust latest

# Build documentation in the "docs/" directory with Sphinx
sphinx:
  configuration: sphinx/source/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
#    - pdf
#    - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
   install:
   - requirements: sphinx/requirements.txt
   - method: pip
     path: .
