-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
47 lines (42 loc) · 1.6 KB
/
Copy path.readthedocs.yaml
File metadata and controls
47 lines (42 loc) · 1.6 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
45
46
47
# Read the Docs configuration file for Sphinx projects
# 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-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"
jobs:
# Build the wheels the in-browser console installs. A list, so a
# future step can be appended here without restructuring this key.
pre_build:
- python -m pip install build
- python scripts/build_docs_wheels.py
# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
fail_on_warning: true
# PDF and ePub are supported and build warning-free. They are necessarily
# static: the `.. demo::` directive emits its animation and Run button as
# HTML-only nodes, so in these formats a demo degrades to its source
# listing plus surrounding prose -- readable, just not animated.
# This works because `docs/index.rst` no longer includes `README.rst`;
# doing so pulled remote SVG badges into every builder, and LaTeX cannot
# render SVG at all.
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: docs/requirements.txt