Skip to content

Commit

Permalink
Fix readthedocs build (#495)
Browse files Browse the repository at this point in the history
* Update rtd build environment

* Clean up path

* Add pandoc version restrictions for nbconvert

* Remove pandoc version requirements since pypi has wrong package

* Constrain nbconvert version on rtd
  • Loading branch information
bwohlberg authored Jan 16, 2024
1 parent 929be49 commit 38289ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ submodules:

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.10"
apt_packages:
- graphviz
- libopenblas-dev
Expand All @@ -29,3 +29,4 @@ sphinx:
python:
install:
- requirements: docs/docs_requirements.txt
- requirements: docs/rtd_requirements.txt
3 changes: 3 additions & 0 deletions docs/rtd_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# nbconvert>=7.5 requires a version of pandoc that is not available
# in the readthedocs build environment
nbconvert<7.5
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

confpath = os.path.dirname(__file__)
sys.path.append(confpath)
rootpath = os.path.join(confpath, "..", "..")
rootpath = os.path.realpath(os.path.join(confpath, "..", ".."))
sys.path.append(rootpath)

from docsutil import insert_inheritance_diagram, package_classes, run_conf_files
Expand Down

0 comments on commit 38289ea

Please sign in to comment.