Restructure the group dict initialization

By putting all value entries on separate lines with a trailing comma,
it becomes easier to read the diff when later inserting or deleting
the first or last value entry in any dict.
This commit is contained in:
KV 2020-07-23 15:16:22 +02:00 committed by Daniel Rojas
parent 476f85bcf5
commit 94ca9cc358

View File

@ -14,17 +14,24 @@ from wv_helper import open_file_write, open_file_read, open_file_append
readme = 'readme.md'
groups = {}
groups['examples'] = {'path': Path(script_path).parent.parent.parent / 'examples',
'prefix': 'ex',
readme: [], # Include no files
'title': 'Example Gallery'}
groups['tutorial'] = {'path': Path(script_path).parent.parent.parent / 'tutorial',
'prefix': 'tutorial',
readme: ['md', 'yml'], # Include .md and .yml files
'title': 'WireViz Tutorial'}
groups['demos'] = {'path': Path(script_path).parent.parent.parent / 'examples',
'prefix': 'demo'}
groups = {
'examples': {
'path': Path(script_path).parent.parent.parent / 'examples',
'prefix': 'ex',
readme: [], # Include no files
'title': 'Example Gallery',
},
'tutorial' : {
'path': Path(script_path).parent.parent.parent / 'tutorial',
'prefix': 'tutorial',
readme: ['md', 'yml'], # Include .md and .yml files
'title': 'WireViz Tutorial',
},
'demos' : {
'path': Path(script_path).parent.parent.parent / 'examples',
'prefix': 'demo',
},
}
input_extensions = ['.yml']
generated_extensions = ['.gv', '.png', '.svg', '.html', '.bom.tsv']