Signed-off-by: Yuekai Zhang <zhangyuekai@foxmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
30 lines
783 B
YAML
30 lines
783 B
YAML
# 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
|
|
pre_install:
|
|
# 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
|
|
# 1 GB memory cap and time out the mkdocs build.
|
|
- python -m pip install --index-url https://download.pytorch.org/whl/cpu torch
|
|
|
|
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
|