Skip to content

Commit d3e988a

Browse files
authored
Merge pull request #107 from broadinstitute/docs
more ReadTheDocs fixes
2 parents d9327c8 + ef2eae6 commit d3e988a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.readthedocs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
# Required
66
version: 2
77

8+
# Set the version of Python
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.10"
13+
814
# Build documentation in the docs/ directory with Sphinx
915
sphinx:
1016
builder: html
@@ -19,6 +25,5 @@ formats: all
1925

2026
# Optionally set the version of Python and requirements required to build your docs
2127
python:
22-
version: 3.10
2328
install:
2429
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _git_version():
5353
# Add any Sphinx extension module names here, as strings. They can be
5454
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5555
# ones.
56-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.imgmath', 'sphinxarg.ext',]
56+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.imgmath', 'sphinxarg.ext', 'sphinx_rtd_theme']
5757

5858
# Add any paths that contain templates here, relative to this directory.
5959
templates_path = ['_templates']
@@ -122,7 +122,7 @@ def _git_version():
122122
# a list of builtin themes.
123123
on_rtd = os.environ.get('READTHEDOCS') == 'True'
124124
if on_rtd:
125-
html_theme = 'default'
125+
html_theme = 'sphinx_rtd_theme'
126126
else:
127127
import sphinx_rtd_theme
128128
html_theme = "sphinx_rtd_theme"

0 commit comments

Comments
 (0)