feat(ux): add hover-reveal ¶ anchors, strip parens from nav
- Add pilcrow (¶) anchor link after heading text for deep-linking - CSS: hidden by default, visible on heading hover, user-overridable - Add strip_parens Tera filter for cleaner nav anchor labels - Update test expectations for new heading format
This commit is contained in:
4
docs/templates/base.html
vendored
4
docs/templates/base.html
vendored
@@ -41,7 +41,7 @@
|
||||
{% if page_path == item.path and page.toc and anchors %}
|
||||
<div class="nav-anchors">
|
||||
{% for anchor in anchors %}
|
||||
<a href="#{{ anchor.id }}" class="anchor-link level-{{ anchor.level }}">{{ anchor.label }}</a>
|
||||
<a href="#{{ anchor.id }}" class="anchor-link level-{{ anchor.level }}">{{ anchor.label | strip_parens }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -53,7 +53,7 @@
|
||||
{% if page_path == child.path and page.toc and anchors %}
|
||||
<div class="nav-anchors">
|
||||
{% for anchor in anchors %}
|
||||
<a href="#{{ anchor.id }}" class="anchor-link level-{{ anchor.level }}">{{ anchor.label }}</a>
|
||||
<a href="#{{ anchor.id }}" class="anchor-link level-{{ anchor.level }}">{{ anchor.label | strip_parens }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user