diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7e8e39739..7b0ae3ecc 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,6 +10,6 @@ python: - requirements: docs/requirements.txt sphinx: - configuration: docs/source/conf.py + configuration: docs/conf.py formats: all \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index a73292e94..673bf9109 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -4,9 +4,9 @@ # -- Version information -sys.path.insert(0, pathlib.Path(__file__).parents[2].absolute()) +sys.path.insert(0, pathlib.Path(__file__).parent.absolute()) version_file = ( - pathlib.Path(__file__).parents[2].absolute() / "src" / "jaxsim" / "version.txt" + pathlib.Path(__file__).parent.absolute() / "src" / "jaxsim" / "version.txt" ) with open(version_file) as file_handler: