Source: alabaster
Version: 0.7.8-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain randomness
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], I noticed
that alabaster could not be built reproducibly as it iterates
over a dict in non-determinstic ordering.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/alabaster/navigation.html b/alabaster/navigation.html
index 670cc7b..b6210a8 100644
--- a/alabaster/navigation.html
+++ b/alabaster/navigation.html
@@ -3,7 +3,7 @@
{% if theme_extra_nav_links %}
<hr />
<ul>
- {% for text, uri in theme_extra_nav_links.items() %}
+ {% for text, uri in theme_extra_nav_links.items()|sort %}
<li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li>
{% endfor %}
</ul>