diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 140aba1eb..4afff4aba 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,3 +12,5 @@ python: install: - requirements: requirements.txt - requirements: doc/requirements.txt + - method: pip + path: . diff --git a/doc/source/conf.py b/doc/source/conf.py index aec140106..869c1b3a8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -2,7 +2,7 @@ import os import sys -sys.path.insert(0, os.path.abspath("../..")) +sys.path.insert(0, os.path.abspath(os.path.join("..", ".."))) # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be @@ -23,11 +23,11 @@ source_suffix = ".rst" # The root toctree document. -master_doc = "index" +root_doc = "index" # General information about the project. project = "Bandit" -copyright = "2022, Bandit Developers" +copyright = "2023, Bandit Developers" # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True diff --git a/tox.ini b/tox.ini index 7a2208b53..f8fddff99 100644 --- a/tox.ini +++ b/tox.ini @@ -65,7 +65,7 @@ commands = [testenv:docs] deps = -r{toxinidir}/doc/requirements.txt commands= - python setup.py build_sphinx + sphinx-build doc/source doc/build [flake8] # [H106] Don't put vim configuration in source files.