File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ html output at the same position in the page as in the source .rst file.
53
53
54
54
For each tag, a new rst file is created in ``<output_dir>/<tagname>.rst ``
55
55
containing a table of contents of each file associated with that tag (see
56
- :ref: `config `).
56
+ :ref: `config `). A reference label will be added to this rst file, to enable you to
57
+ cross-reference to it. The reference label will have the format: ``sphx_tag_<tagname> ``
58
+ e.g., a reference would look like: ``:ref:`sphx_tag_tag1` ``.
57
59
58
60
A :ref: `tagoverview ` page is also created that can be added to the index and
59
61
show all tags defined for this documentation set.
Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ def create_file(
193
193
content .append ("#" * textwidth (header ))
194
194
content .append ("" )
195
195
# Return link block at the start of the page"""
196
+ content .append (f".. _sphx_tag_{ self .file_basename } :" )
196
197
content .append (".. toctree::" )
197
198
content .append (" :maxdepth: 1" )
198
199
content .append (f" :caption: { tags_page_header } " )
You can’t perform that action at this time.
0 commit comments