Skip to content

Commit c79bd09

Browse files
committed
Change path in docs config to make if usable for readthedocs build
1 parent 2b9896e commit c79bd09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
extensions = [
3838
"sphinx.ext.autodoc",
3939
"sphinx.ext.autosummary",
40+
"sphinx.ext.linkcode",
4041
"sphinx.ext.mathjax",
4142
"sphinx.ext.napoleon",
4243
"sphinx.ext.intersphinx",
43-
"sphinx.ext.linkcode",
4444
"sphinx_autodoc_defaultargs",
4545
"sphinx_subfigure",
4646
]
@@ -122,7 +122,7 @@ def linkcode_resolve(domain, info):
122122
# e.g. object is a typing.Union
123123
return None
124124

125-
filename = os.path.relpath(filename, os.path.abspath(".."))
125+
filename = os.path.relpath(filename, os.path.abspath("../.."))
126126

127127
if not filename.startswith("varipeps"):
128128
# e.g. object is a typing.NewType

0 commit comments

Comments
 (0)