mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-01 14:52:29 -04:00
Make building index-generated.html deterministic
This commit is contained in:
parent
94d93c2165
commit
ca6fa6bccf
@ -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:
|
||||
|
||||
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user