-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
32 lines (29 loc) · 860 Bytes
/
.readthedocs.yaml
File metadata and controls
32 lines (29 loc) · 860 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
# Read the Docs configuration file for Zensical projects
# See https://docs.readthedocs.com/platform/stable/intro/zensical.html for details
# Required
version: 2
# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub
formats: all
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-24.04
tools:
python: latest
jobs:
pre_create_environment:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
create_environment:
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
install:
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --group docs
build:
html:
- zensical build
post_build:
- mkdir -p $READTHEDOCS_OUTPUT/html/
- cp --recursive build/html/* $READTHEDOCS_OUTPUT/html/