-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.readthedocs.yml
More file actions
36 lines (32 loc) · 939 Bytes
/
.readthedocs.yml
File metadata and controls
36 lines (32 loc) · 939 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
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
build:
os: ubuntu-22.04
tools:
python: latest
apt_packages:
- libgl1-mesa-dev
- libxkbcommon-x11-0
- graphviz
jobs:
pre_create_environment:
- >-
UV_INSTALL_DIR="${HOME}/.local/bin" &&
curl -LsSf https://astral.sh/uv/install.sh | sh
- ${HOME}/.local/bin/uv sync --group docs
build:
html:
- >-
${HOME}/.local/bin/uv run
sphinx-build docs docs/_build/html
post_build:
- mkdir -p ${READTHEDOCS_OUTPUT}/html/
- mv docs/_build/html/* ${READTHEDOCS_OUTPUT}/html
sphinx:
# Path to your Sphinx configuration file.
configuration: docs/conf.py