Skip to content

Commit 96dcbf7

Browse files
committed
Links to individual subjects at the top
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 203bfa8 commit 96dcbf7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compliance-monitor/templates/details.md.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
{% if results | length > 1 %}
2+
Jump to
3+
4+
{% for subject in results -%}
5+
- [{{subject}}](#{{subject}})
6+
{% endfor %}
7+
{% endif %}
18
{% for subject, subject_result in results.items() -%}
29
{# omit h1 title here because we can only have one of those,
310
and the html wrapper template will add one anyway -#}
411
{% for scopeuuid, scope_result in subject_result.items() -%}
12+
<a name="{{ subject }}"></a>
513
## {{ subject }}: {{ scope_result.name }}
614

715
- [spec overview]({{ scope_url(scopeuuid) }})

0 commit comments

Comments
 (0)