From d4892000db3e4d7a5c18f3354a8018cd2b278bf6 Mon Sep 17 00:00:00 2001 From: David Minton Date: Tue, 19 Dec 2023 20:13:23 -0500 Subject: [PATCH] Fixed bad path name --- docs/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f8280af35..ff2b206ec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,12 +9,8 @@ from sphinx.util import logging # Disable import of swiftest._bindings so that we don't have to build the Fortran code when building the docs +import swiftest autodoc_mock_imports = ['swiftest._bindings'] -# Check if we are building on Read the Docs -on_rtd = os.environ.get('READTHEDOCS') == 'True' - -if not on_rtd: - import swiftest # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -171,7 +167,7 @@ def linkcode_resolve(domain, info): else: linespec = "" - fn = os.path.relpath(fn, start=os.path.dirname()) + fn = os.path.relpath(fn, start=os.path.dirname(swiftest.__file__))