Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
More adjustments to the conf.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 19, 2023
1 parent 10b8f69 commit e159e52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from sphinx.application import Sphinx
from sphinx.util import logging

sys.path.insert(0, os.path.abspath('../'))
swiftest_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'swiftest'))
sys.path.insert(0, swiftest_path)

autodoc_mock_imports = ['swiftest']

Expand Down Expand Up @@ -167,8 +168,7 @@ def linkcode_resolve(domain, info):
else:
linespec = ""

fn = os.path.relpath(fn, start=os.path.dirname(swiftest.__file__))

fn = os.path.relpath(fn, start=os.path.dirname(swiftest_path))


def html_page_context(app, pagename, templatename, context, doctree):
Expand Down

0 comments on commit e159e52

Please sign in to comment.