Skip to content

Commit d5a0bb6

Browse files
author
James (ODSC)
authored
Merge pull request #1395 from OpenDataServices/2024-10-03
2024 10 03
2 parents 05b445c + 521e5df commit d5a0bb6

File tree

5 files changed

+45
-19
lines changed

5 files changed

+45
-19
lines changed

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

.readthedocs.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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-24.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
builder: dirhtml
18+
19+
# We recommend specifying your dependencies to enable reproducible builds:
20+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
21+
python:
22+
install:
23+
- requirements: requirements_dev.txt
24+
25+
26+

docs/conf.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
#
20-
import os
2120
# import sys
2221
# sys.path.insert(0, os.path.abspath('.'))
2322
from recommonmark.transform import AutoStructify
@@ -121,18 +120,11 @@
121120

122121

123122
# -- Options for HTML output ----------------------------------------------
124-
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
125-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
126-
127-
if not on_rtd: # only import and set the theme if we're building docs locally
128-
import sphinx_rtd_theme
129-
html_theme = 'sphinx_rtd_theme'
130-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
131-
132123
# The theme to use for HTML and HTML Help pages. See the documentation for
133124
# a list of builtin themes.
134125
#
135-
#html_theme = 'alabaster'
126+
html_theme = "odsc_default_sphinx_theme"
127+
136128

137129
# Theme options are theme-specific and customize the look and feel of a theme
138130
# further. For a list of options available for each theme, see the

requirements_dev.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ transifex-client
1212
libsass
1313
Sphinx
1414
recommonmark
15-
sphinx_rtd_theme
15+
odsc-default-sphinx-theme
1616
hypothesis

requirements_dev.txt

+15-8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ backports-datetime-fromisoformat==2.0.1
3030
# via
3131
# -r requirements.txt
3232
# flattentool
33+
beautifulsoup4==4.12.3
34+
# via furo
3335
behave==1.2.5
3436
# via
3537
# -r requirements.txt
@@ -100,7 +102,6 @@ docutils==0.20.1
100102
# via
101103
# recommonmark
102104
# sphinx
103-
# sphinx-rtd-theme
104105
et-xmlfile==1.1.0
105106
# via
106107
# -r requirements.txt
@@ -114,6 +115,8 @@ flattentool==0.26.0
114115
# -r requirements.txt
115116
# libcove
116117
# libcoveweb
118+
furo==2024.8.6
119+
# via odsc-default-sphinx-theme
117120
gunicorn==23.0.0
118121
# via -r requirements.txt
119122
h11==0.14.0
@@ -175,6 +178,8 @@ odfpy==1.4.1
175178
# via
176179
# -r requirements.txt
177180
# flattentool
181+
odsc-default-sphinx-theme==0.0.1
182+
# via -r requirements_dev.in
178183
openpyxl==3.1.5
179184
# via
180185
# -r requirements.txt
@@ -216,7 +221,9 @@ pycparser==2.22
216221
pyflakes==3.2.0
217222
# via flake8
218223
pygments==2.18.0
219-
# via sphinx
224+
# via
225+
# furo
226+
# sphinx
220227
pysocks==1.7.1
221228
# via urllib3
222229
pytest==8.3.2
@@ -301,22 +308,22 @@ sortedcontainers==2.4.0
301308
# via
302309
# hypothesis
303310
# trio
311+
soupsieve==2.6
312+
# via beautifulsoup4
304313
sphinx==7.4.7
305314
# via
306315
# -r requirements_dev.in
316+
# furo
307317
# recommonmark
308-
# sphinx-rtd-theme
309-
# sphinxcontrib-jquery
310-
sphinx-rtd-theme==2.0.0
311-
# via -r requirements_dev.in
318+
# sphinx-basic-ng
319+
sphinx-basic-ng==1.0.0b2
320+
# via furo
312321
sphinxcontrib-applehelp==2.0.0
313322
# via sphinx
314323
sphinxcontrib-devhelp==2.0.0
315324
# via sphinx
316325
sphinxcontrib-htmlhelp==2.1.0
317326
# via sphinx
318-
sphinxcontrib-jquery==4.1
319-
# via sphinx-rtd-theme
320327
sphinxcontrib-jsmath==1.0.1
321328
# via sphinx
322329
sphinxcontrib-qthelp==2.0.0

0 commit comments

Comments
 (0)