Skip to content

Commit 02619a8

Browse files
oprypinpawamoy
authored andcommitted
fix: Show labels in deterministic order
These labels are `set`s which have no defined order. Define *some* order, so they don't flip-flop depending on the environment.
1 parent 22e83de commit 02619a8

File tree

1 file changed

+1
-1
lines changed
  • src/mkdocstrings_handlers/python/templates/material/_base

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/labels.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% if labels %}
22
{{ log.debug("Rendering labels") }}
33
<span class="doc doc-labels">
4-
{% for label in labels %}
4+
{% for label in labels|sort %}
55
<small class="doc doc-label doc-label-{{ label }}"><code>{{ label }}</code></small>
66
{% endfor %}
77
</span>

0 commit comments

Comments
 (0)