2025-11-15 21:45:43 +08:00
|
|
|
# Read the Docs configuration file
|
|
|
|
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
|
|
|
|
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
os: ubuntu-22.04
|
|
|
|
|
tools:
|
|
|
|
|
python: "3.12"
|
|
|
|
|
jobs:
|
|
|
|
|
post_checkout:
|
|
|
|
|
- git fetch --unshallow || true
|
2026-05-25 23:16:07 +08:00
|
|
|
pre_install:
|
2026-08-12 15:52:01 -07:00
|
|
|
# `pre_install` runs before RTD upgrades pip, and the seeded pip 23.1
|
|
|
|
|
# rejects the `typing_extensions` wheel torch needs (fixed in pip 23.2).
|
|
|
|
|
- python -m pip install --upgrade pip
|
2026-05-25 23:16:07 +08:00
|
|
|
# Pre-install CPU torch so the subsequent `pip install .[docs]` does not
|
|
|
|
|
# pull ~2 GB of CUDA 13 libs (cuBLAS/cuDNN/NCCL/...) that exceed RTD's
|
2026-08-12 15:52:01 -07:00
|
|
|
# 1 GB memory cap and time out the mkdocs build. Wheel-only: `--index-url`
|
|
|
|
|
# replaces PyPI, so an sdist fallback cannot reach its build deps. The
|
|
|
|
|
# quotes keep YAML from reading `:all:` as a mapping key.
|
|
|
|
|
- "python -m pip install --only-binary=:all: --index-url https://download.pytorch.org/whl/cpu torch"
|
2025-11-15 21:45:43 +08:00
|
|
|
|
|
|
|
|
mkdocs:
|
|
|
|
|
configuration: mkdocs.yml
|
|
|
|
|
fail_on_warning: true
|
|
|
|
|
|
|
|
|
|
# Optionally declare the Python requirements required to build your docs
|
|
|
|
|
python:
|
|
|
|
|
install:
|
|
|
|
|
- method: pip
|
|
|
|
|
path: .
|
|
|
|
|
extra_requirements:
|
|
|
|
|
- docs
|