Skip to content

Commit

Permalink
Fixed readthedocs build.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohil8 committed Feb 8, 2024
1 parent 64ff6eb commit 912d7a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.8"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
Expand All @@ -27,3 +27,6 @@ sphinx:
python:
install:
- requirements: requirements.txt
- method: pip
extra_requirements:
- osl
12 changes: 6 additions & 6 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
#'sphinx_gallery.gen_gallery',
'sphinx_gallery.gen_gallery',
'sphinx.ext.autosummary',
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
Expand Down Expand Up @@ -69,11 +69,11 @@

# -- Sphinx Options ---------------------------------------------------------

#sphinx_gallery_conf = {
# 'examples_dirs': 'tutorials', # path to your example scripts
# 'gallery_dirs': 'build_tutorials', # path to where to save gallery generated output
# 'filename_pattern': '/osl_tutorial_',
#}
sphinx_gallery_conf = {
'examples_dirs': 'tutorials', # path to your example scripts
'gallery_dirs': 'build_tutorials', # path to where to save gallery generated output
'filename_pattern': '/osl_tutorial_',
}

intersphinx_mapping = {'mne': ('https://mne.tools/stable/', None),
'osl': ('https://osl.readthedocs.io/en/improve_docs/', None),
Expand Down

0 comments on commit 912d7a8

Please sign in to comment.