-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.readthedocs.yml
36 lines (32 loc) · 1.02 KB
/
.readthedocs.yml
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
# Read the Docs configuration file for Starbridge
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Don't publish the docs if there are any warnings, as they might be relevant
# https://github.com/readthedocs/readthedocs.org/issues/6837#issuecomment-607229633
sphinx:
builder: html
configuration: docs/source/conf.py
fail_on_warning: true
# Formats of the documentation to be built
formats:
- htmlzip
- pdf
# Build configuration
# We use Ubuntu 22.04 with Python 3.12 and set up uv as package manager
# for faster and more reliable dependency installation
build:
os: ubuntu-22.04
tools:
python: "3.12"
apt_packages:
- imagemagick
jobs:
install:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- echo $READTHEDOCS_VIRTUALENV_PATH
- uv venv $READTHEDOCS_VIRTUALENV_PATH
- . ${READTHEDOCS_VIRTUALENV_PATH}/bin/activate
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --frozen --all-extras