Skip to content

Commit

Permalink
add ref label
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyleeow committed Dec 6, 2023
1 parent c4df648 commit 6e29da1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sphinx_tags/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def create_file(
content.append("#" * textwidth(header))
content.append("")
# Return link block at the start of the page"""
content.append(f".. _sphx_tag_{self.file_basename}_{self.name}:")
content.append(".. toctree::")
content.append(" :maxdepth: 1")
content.append(f" :caption: {tags_page_header}")
Expand Down

0 comments on commit 6e29da1

Please sign in to comment.