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

version: 2

# Set the OS, Python version and other tools you might need
build:
  os: ubuntu-22.04
  tools:
    python: "3.11"
    rust: "1.70"
  jobs:
    post_install:
      # Install maturin and build the Rust extension
      - pip install maturin
      - cd python-groggy && maturin build --release
      - pip install python-groggy/target/wheels/*.whl

# Build documentation with MkDocs
mkdocs:
  configuration: mkdocs.yml
  fail_on_warning: false

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

# Install Python dependencies
python:
  install:
    - requirements: docs/requirements.txt
    - method: pip
      path: python-groggy
