-
Notifications
You must be signed in to change notification settings - Fork 153
/
.readthedocs.yaml
38 lines (34 loc) · 1.23 KB
/
.readthedocs.yaml
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
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.12"
jobs:
post_checkout:
# Skip building the documentation if there are no changes in the docs/ directory
- |
if [ "$READTHEDOCS_VERSION_TYPE" != "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml;
then
exit 183;
fi
pre_build:
# Auto-generate REST API reference
- PYTHONPATH="src" python -m ai.backend.manager.openapi -o docs/manager/rest-reference/openapi.json
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
then
mkdir docs/fonts
curl -L https://github.com/orioncactus/pretendard/releases/download/v1.3.9/Pretendard-1.3.9.zip -o pretendard.zip
unzip -o pretendard.zip -d docs/fonts/Pretendard
curl -L https://github.com/naver/d2codingfont/releases/download/VER1.3.2/D2Coding-Ver1.3.2-20180524.zip -o d2coding.zip
unzip -o d2coding.zip -d docs/fonts/D2Coding
fi
python:
install:
- requirements: requirements.txt
- requirements: docs/requirements.txt
sphinx:
configuration: docs/conf.py
formats: all