-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
53 lines (39 loc) · 1.41 KB
/
.readthedocs.yaml
File metadata and controls
53 lines (39 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
#
# It references dev/mkdocs.yml for the MkDocs configuration
version: 2
# Build configuration
build:
os: ubuntu-24.04
tools:
python: "3.11"
commands:
# Explicitly install dependencies first (python.install may not run before commands)
- pip install -r dev/requirements-rtd.txt
# Install the project itself (needed for mkdocstrings to parse code)
- pip install -e .
# Use the patched build script to ensure i18n plugin works correctly
# This applies patches to mkdocs-static-i18n before building
- python dev/build_docs_patched_clean.py
# MkDocs configuration
# Point to the mkdocs.yml file in the dev directory
# Note: We override the default build with build.commands above,
# but this is still needed for Read the Docs to detect MkDocs project
mkdocs:
configuration: dev/mkdocs.yml
# Python environment configuration
# These steps run BEFORE build.commands
python:
install:
# Install dependencies from requirements file (relative to project root)
- requirements: dev/requirements-rtd.txt
# Install the project itself (needed for mkdocstrings to parse code)
# Use editable install to ensure imports work correctly
- method: pip
path: .
extra_requirements: []
# Format configuration (optional, for better build output)
formats:
- htmlzip
- pdf