Skip to content

Commit 896bb9c

Browse files
committed
Merge branch 'main' of github.com:melissawm/sphinx-tags
2 parents a328ebd + b579205 commit 896bb9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sphinx_tags/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ def run(self):
4747
# |
4848
# - current_doc_path
4949
docpath = Path(self.env.doc2path(self.env.docname)).parent
50-
rootdir = os.path.relpath(self.env.app.config.tags_output_dir, docpath)
50+
rootdir = os.path.relpath(
51+
os.path.join(self.env.app.srcdir, self.env.app.config.tags_output_dir),
52+
docpath,
53+
)
5154
link = os.path.join(rootdir, f"{tag}.html")
5255
tag_node = nodes.reference(refuri=link, text=tag)
5356
result += tag_node

0 commit comments

Comments
 (0)