We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a328ebd + b579205 commit 896bb9cCopy full SHA for 896bb9c
src/sphinx_tags/__init__.py
@@ -47,7 +47,10 @@ def run(self):
47
# |
48
# - current_doc_path
49
docpath = Path(self.env.doc2path(self.env.docname)).parent
50
- rootdir = os.path.relpath(self.env.app.config.tags_output_dir, docpath)
+ rootdir = os.path.relpath(
51
+ os.path.join(self.env.app.srcdir, self.env.app.config.tags_output_dir),
52
+ docpath,
53
+ )
54
link = os.path.join(rootdir, f"{tag}.html")
55
tag_node = nodes.reference(refuri=link, text=tag)
56
result += tag_node
0 commit comments