dynamic html table with javascript, more screenshots
This commit is contained in:
@ -7,15 +7,17 @@ import configparser
|
||||
|
||||
# paths
|
||||
root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir))
|
||||
code_path = os.path.join(root_path, 'code')
|
||||
web_template_path = os.path.join(code_path, 'html')
|
||||
entries_path = os.path.join(root_path, 'entries')
|
||||
tocs_path = os.path.join(entries_path, 'tocs')
|
||||
code_path = os.path.join(root_path, 'code')
|
||||
web_path = os.path.join(root_path, 'docs')
|
||||
screenshots_path = os.path.join(entries_path, 'screenshots')
|
||||
web_template_path = os.path.join(code_path, 'html')
|
||||
|
||||
web_path = os.path.join(root_path, 'docs')
|
||||
web_css_path = os.path.join(web_path, 'css')
|
||||
web_js_path = os.path.join(web_path, 'js')
|
||||
web_screenshots_path = os.path.join(web_path, 'screenshots')
|
||||
web_data_path = os.path.join(web_path, 'data')
|
||||
|
||||
private_properties_file = os.path.join(root_path, 'private.properties')
|
||||
inspirations_file = os.path.join(root_path, 'inspirations.md')
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user