Skip to content

Commit 419e299

Browse files
authored
Merge pull request #153 from pcubillos/docs
Fixed docs compilation
2 parents 4a58c12 + 99ba521 commit 419e299

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.readthedocs.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
version: 2
22

3-
formats: []
3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "3.11"
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/conf.py
411

512
python:
6-
version: 3.8
713
install:
814
- requirements: requirements.txt
15+
- requirements: docs/docs_requirements.txt
916
- method: pip
1017
path: .
1118

19+

docs/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
'sphinx.ext.autodoc',
3838
'sphinx.ext.mathjax',
3939
'sphinx.ext.viewcode',
40+
'IPython.sphinxext.ipython_console_highlighting',
41+
'nbsphinx',
42+
"sphinx_copybutton",
4043
]
4144

4245
# Add any paths that contain templates here, relative to this directory.
@@ -72,7 +75,7 @@
7275
#
7376
# This is also used if you do content translation via gettext catalogs.
7477
# Usually you set "language" from the command line for these cases.
75-
language = None
78+
language = 'en'
7679

7780
# There are two options for replacing |today|: either, you set today to some
7881
# non-false value, then it is used:

docs/docs_requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sphinx-rtd-theme>=2.0.0
2+
nbsphinx
3+
sphinx_copybutton
4+
ipython>=8.17

0 commit comments

Comments
 (0)