-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.readthedocs.yml
More file actions
38 lines (32 loc) · 856 Bytes
/
.readthedocs.yml
File metadata and controls
38 lines (32 loc) · 856 Bytes
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
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
# Build documentation with Sphinx
sphinx:
configuration: docs/conf.py
fail_on_warning: false
# Build formats
formats:
- pdf
- epub
# Python environment
build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
post_checkout:
# Cancel building pull requests when new commits are pushed
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git show-ref --verify --quiet "refs/remotes/origin/$READTHEDOCS_VERSION"; then
# Rebase on the target branch if possible
git fetch origin $READTHEDOCS_GIT_IDENTIFIER
fi
# Python requirements
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- dev