Skip to content

Commit bec0bfa

Browse files
committed
add readthedocs YAML config
1 parent 6ef14a9 commit bec0bfa

File tree

4 files changed

+132
-3
lines changed

4 files changed

+132
-3
lines changed

.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.8"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
# formats:
27+
# - pdf
28+
# - epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
15-
# import os
16-
# import sys
17-
# sys.path.insert(0, os.path.abspath('.'))
15+
import os
16+
import sys
17+
sys.path.insert(0, os.path.abspath('..'))
1818

1919

2020
# -- Project information -----------------------------------------------------

docs/requirements.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exceptiongroup
2+
sphinx
3+
sphinx-rtd-theme
4+
sphinxcontrib-trio
5+
trio
6+
wsproto

docs/requirements.txt

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
4+
#
5+
# pip-compile --output-file=requirements.txt requirements.in
6+
#
7+
alabaster==0.7.13
8+
# via sphinx
9+
attrs==25.1.0
10+
# via
11+
# outcome
12+
# trio
13+
babel==2.17.0
14+
# via sphinx
15+
certifi==2025.1.31
16+
# via requests
17+
charset-normalizer==3.4.1
18+
# via requests
19+
docutils==0.20.1
20+
# via
21+
# sphinx
22+
# sphinx-rtd-theme
23+
exceptiongroup==1.2.2
24+
# via
25+
# -r requirements.in
26+
# trio
27+
h11==0.14.0
28+
# via wsproto
29+
idna==3.10
30+
# via
31+
# requests
32+
# trio
33+
imagesize==1.4.1
34+
# via sphinx
35+
importlib-metadata==8.5.0
36+
# via sphinx
37+
jinja2==3.1.5
38+
# via sphinx
39+
markupsafe==2.1.5
40+
# via jinja2
41+
outcome==1.3.0.post0
42+
# via trio
43+
packaging==24.2
44+
# via sphinx
45+
pygments==2.19.1
46+
# via sphinx
47+
pytz==2025.1
48+
# via babel
49+
requests==2.32.3
50+
# via sphinx
51+
sniffio==1.3.1
52+
# via trio
53+
snowballstemmer==2.2.0
54+
# via sphinx
55+
sortedcontainers==2.4.0
56+
# via trio
57+
sphinx==7.1.2
58+
# via
59+
# -r requirements.in
60+
# sphinx-rtd-theme
61+
# sphinxcontrib-jquery
62+
# sphinxcontrib-trio
63+
sphinx-rtd-theme==3.0.2
64+
# via -r requirements.in
65+
sphinxcontrib-applehelp==1.0.4
66+
# via sphinx
67+
sphinxcontrib-devhelp==1.0.2
68+
# via sphinx
69+
sphinxcontrib-htmlhelp==2.0.1
70+
# via sphinx
71+
sphinxcontrib-jquery==4.1
72+
# via sphinx-rtd-theme
73+
sphinxcontrib-jsmath==1.0.1
74+
# via sphinx
75+
sphinxcontrib-qthelp==1.0.3
76+
# via sphinx
77+
sphinxcontrib-serializinghtml==1.1.5
78+
# via sphinx
79+
sphinxcontrib-trio==1.1.2
80+
# via -r requirements.in
81+
trio==0.27.0
82+
# via -r requirements.in
83+
urllib3==2.2.3
84+
# via requests
85+
wsproto==1.2.0
86+
# via -r requirements.in
87+
zipp==3.20.2
88+
# via importlib-metadata

0 commit comments

Comments
 (0)