diff --git a/.readthedocs.yml b/.readthedocs.yml index 0ee7e5c8d..515a3c9bf 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,5 +1,15 @@ +version: 2 build: - image: latest + os: ubuntu-22.04 + tools: + python: "3.12" + python: - version: 3.8 -requirements_file: docs/requirements.txt + install: + - method: pip + path: . + extra_requirements: + - docs + +sphinx: + configuration: docs/conf.py diff --git a/docs/requirements.txt b/docs/requirements.txt index 0059c8177..136fbcdfa 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,12 +1,7 @@ alabaster>=0.7.12,<1 docutils>=0.17.1,<1 -matplotlib>=3.7.3,<4 -myst-parser>=0.16.1,<1 -networkx>=3.1,<4 -numpy>=1.24.4,<2 +myst-parser>=2,<3 Pygments>=2.11.2,<3 rstcheck -scipy>=1.10.1,<2 -Sphinx>=5.3.0,<6 +Sphinx>=7.2.6,<8 sphinxcontrib-bibtex>=2.4.1,<3 -xlrd>=1.2.0,<2 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 1b8c67dac..61cfb0ca0 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ skipsdist = True deps = -r{toxinidir}/requirements.txt -r{toxinidir}/tests/requirements.txt + docs: -r{toxinidir}/docs/requirements.txt cover: pytest-cov linters: flake8 linters: pep8-naming @@ -22,8 +23,6 @@ commands = python -m build [testenv:docs] -deps = - -r{toxinidir}/docs/requirements.txt allowlist_externals = /bin/sh commands =