Skip to content

Commit 2d0c7ca

Browse files
committed
.readthedocs.yaml & specify theme
To get RTD to build, had to lock versions for dev work
1 parent 2b52fd7 commit 2d0c7ca

File tree

5 files changed

+144
-1
lines changed

5 files changed

+144
-1
lines changed

.readthedocs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.8"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# We recommend specifying your dependencies to enable reproducible builds:
19+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
- requirements: requirements_docs.txt
25+

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
master_doc = 'index'
55

6-
extensions = ['sphinxcontrib.jsonschema']
6+
extensions = ['sphinxcontrib.jsonschema', 'sphinx_rtd_theme']
77

88
html_extra_path = [
99
'example_components.json',
1010
'example_schema.json',
1111
'example_schema_with_external_refs.json'
1212
]
13+
14+
html_theme = "sphinx_rtd_theme"

requirements_docs.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# After compiling, this will make an absolute path
2+
# You'll have to edit it back to a relative one by hand
3+
-e .[test]

requirements_docs.txt

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile requirements_dev.in
6+
#
7+
-e .
8+
# via -r requirements_dev.in
9+
alabaster==0.7.13
10+
# via sphinx
11+
babel==2.12.1
12+
# via sphinx
13+
certifi==2023.7.22
14+
# via requests
15+
charset-normalizer==3.2.0
16+
# via requests
17+
docutils==0.18.1
18+
# via
19+
# myst-parser
20+
# sphinx
21+
# sphinx-rtd-theme
22+
# sphinxcontrib-opendataservices-jsonschema
23+
exceptiongroup==1.1.3
24+
# via pytest
25+
flake8==5.0.4
26+
# via sphinxcontrib-opendataservices-jsonschema
27+
idna==3.4
28+
# via requests
29+
imagesize==1.4.1
30+
# via sphinx
31+
importlib-metadata==6.8.0
32+
# via sphinx
33+
iniconfig==2.0.0
34+
# via pytest
35+
jinja2==3.1.2
36+
# via
37+
# myst-parser
38+
# sphinx
39+
jsonpointer==2.4
40+
# via sphinxcontrib-opendataservices-jsonschema
41+
jsonref==1.1.0
42+
# via sphinxcontrib-opendataservices-jsonschema
43+
lxml==4.9.3
44+
# via sphinxcontrib-opendataservices-jsonschema
45+
markdown-it-py==3.0.0
46+
# via
47+
# mdit-py-plugins
48+
# myst-parser
49+
markupsafe==2.1.3
50+
# via jinja2
51+
mccabe==0.7.0
52+
# via flake8
53+
mdit-py-plugins==0.4.0
54+
# via myst-parser
55+
mdurl==0.1.2
56+
# via markdown-it-py
57+
myst-parser==2.0.0
58+
# via sphinxcontrib-opendataservices-jsonschema
59+
packaging==23.1
60+
# via
61+
# pytest
62+
# sphinx
63+
pluggy==1.3.0
64+
# via pytest
65+
pycodestyle==2.9.1
66+
# via flake8
67+
pyflakes==2.5.0
68+
# via flake8
69+
pygments==2.16.1
70+
# via sphinx
71+
pytest==7.4.2
72+
# via sphinxcontrib-opendataservices-jsonschema
73+
pyyaml==6.0.1
74+
# via myst-parser
75+
requests==2.31.0
76+
# via sphinx
77+
snowballstemmer==2.2.0
78+
# via sphinx
79+
sphinx==7.2.6
80+
# via
81+
# myst-parser
82+
# sphinx-rtd-theme
83+
# sphinxcontrib-applehelp
84+
# sphinxcontrib-devhelp
85+
# sphinxcontrib-htmlhelp
86+
# sphinxcontrib-jquery
87+
# sphinxcontrib-opendataservices-jsonschema
88+
# sphinxcontrib-qthelp
89+
# sphinxcontrib-serializinghtml
90+
sphinx-rtd-theme==1.3.0
91+
# via sphinxcontrib-opendataservices-jsonschema
92+
sphinxcontrib-applehelp==1.0.7
93+
# via sphinx
94+
sphinxcontrib-devhelp==1.0.5
95+
# via sphinx
96+
sphinxcontrib-htmlhelp==2.0.4
97+
# via sphinx
98+
sphinxcontrib-jquery==4.1
99+
# via sphinx-rtd-theme
100+
sphinxcontrib-jsmath==1.0.1
101+
# via sphinx
102+
sphinxcontrib-qthelp==1.0.6
103+
# via sphinx
104+
sphinxcontrib-serializinghtml==1.1.9
105+
# via sphinx
106+
tomli==2.0.1
107+
# via pytest
108+
urllib3==2.0.4
109+
# via requests
110+
zipp==3.16.2
111+
# via importlib-metadata

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
'flake8<6',
4545
'lxml',
4646
'pytest',
47+
'sphinx',
48+
'sphinx-rtd-theme',
4749
],
4850
},
4951
namespace_packages=['sphinxcontrib'],

0 commit comments

Comments
 (0)