Make building index-generated.html deterministic

This commit is contained in:
Kovid Goyal 2026-03-29 10:56:59 +05:30
parent 94d93c2165
commit ca6fa6bccf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def merge():
recover=True, no_network=True, resolve_entities=False
)
)
for f in os.listdir(base):
for f in sorted(os.listdir(base)):
if not f.endswith('.svg'):
continue
with open(os.path.join(base, f), 'rb') as ff:

View File

@ -450,7 +450,7 @@ def set_data(src, **kw):
'__BUILTIN_DECORATIONS__': json.dumps(builtin_decorations),
'__NO_SEARCH_LINK__': NO_SEARCH_LINK,
'__CHARS_PER_PAGE__': str(CHARS_PER_PAGE),
'__EDITABLE_FORMATS__': json.dumps(tuple(SUPPORTED)),
'__EDITABLE_FORMATS__': json.dumps(sorted(SUPPORTED)),
}.items():
src = src.replace(k, v, 1)
for k, v in kw.items():