diff --git a/.readthedocs.yml b/.readthedocs.yml index f5b5350b84..6e8052aac0 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -7,10 +7,15 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-22.04 + os: "ubuntu-22.04" tools: - python: "latest" + python: "3.12" # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/source/conf.py + +# Explicitly set the version of Python and its requirements +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000000..c64e5663f2 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,3 @@ +sphinx==5.3.0 +sphinx_rtd_theme==1.1.1 +readthedocs-sphinx-search==0.3.2 diff --git a/docs/source/conf.py b/docs/source/conf.py index f1cda0d303..ba6d2f6617 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,9 +12,9 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os -import sys -sys.path.insert(0, os.path.abspath('../../')) +# import os +# import sys +# sys.path.insert(0, os.path.abspath('../../')) # -- Project information ----------------------------------------------------- @@ -87,7 +87,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ["_static"] +html_static_path = [""] # Custom sidebar templates, must be a dictionary that maps document names # to template names.