Sort keys in collect-sections.py

This makes sure that the reference_docs.json file
is build reproducible.

Ref https://reproducible-builds.org/
This commit is contained in:
Sertonix 2025-03-20 10:52:57 +00:00 committed by James Westman
parent a4e0c3701b
commit 394014429e

View file

@ -132,5 +132,8 @@ if __name__ == "__main__":
# print the sections to a json file
with open(outfile, "w") as f:
json.dump(
{name: section.to_json() for name, section in sections.items()}, f, indent=2
{name: section.to_json() for name, section in sections.items()},
f,
indent=2,
sort_keys=True,
)