Skip to content

Commit 45f7794

Browse files
committed
add comment
1 parent 3c9aed5 commit 45f7794

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pydata_sphinx_theme/toctree.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def generate_header_nav_before_dropdown(n_links_before_dropdown):
142142
links_dropdown = [
143143
# 🐲 brittle code because it relies on the code above to build the HTML in a particular way
144144
html.replace("nav-link", "nav-link dropdown-item").replace(
145-
"pst-header-nav-item", ""
145+
# Prevents the header-link mixin from applying to links within the dropdown
146+
"pst-header-nav-item",
147+
"",
146148
)
147149
for html in links_html[n_links_before_dropdown:]
148150
]

0 commit comments

Comments
 (0)