dynamic html table with javascript, more screenshots

This commit is contained in:
Trilarion
2021-10-15 18:06:09 +02:00
parent 8486b618e1
commit df80f70125
125 changed files with 14005 additions and 238 deletions

View File

@@ -657,9 +657,13 @@ def write_screenshots_overview(overview):
text = utils.read_text(c.screenshots_file)
text = text.split('\n# ')[0] + '\n'
for name, a in overview.items():
# write out each entry sorted by name
for name in sorted(overview.keys()):
a = overview[name]
t = '# {}\n\n'.format(name)
for id, ai in a.items():
# write out each line sorted by id
for id in sorted(a.keys()):
ai = a[id]
if ai[-1] is None:
ai = ai[:-1]
t += ' '.join(['{:02d}'.format(id)] + [str(x) for x in ai]) + '\n'