Skip to content

Commit

Permalink
Merge branch 'main' of github.com:melissawm/sphinx-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm committed Sep 2, 2022
2 parents a328ebd + b579205 commit 896bb9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sphinx_tags/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def run(self):
# |
# - current_doc_path
docpath = Path(self.env.doc2path(self.env.docname)).parent
rootdir = os.path.relpath(self.env.app.config.tags_output_dir, docpath)
rootdir = os.path.relpath(
os.path.join(self.env.app.srcdir, self.env.app.config.tags_output_dir),
docpath,
)
link = os.path.join(rootdir, f"{tag}.html")
tag_node = nodes.reference(refuri=link, text=tag)
result += tag_node
Expand Down

0 comments on commit 896bb9c

Please sign in to comment.