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' readme = 'readme.md'
groups = {} groups = {
groups['examples'] = {'path': Path(script_path).parent.parent.parent / 'examples', 'examples': {
'prefix': 'ex', 'path': Path(script_path).parent.parent.parent / 'examples',
readme: [], # Include no files 'prefix': 'ex',
'title': 'Example Gallery'} readme: [], # Include no files
groups['tutorial'] = {'path': Path(script_path).parent.parent.parent / 'tutorial', 'title': 'Example Gallery',
'prefix': 'tutorial', },
readme: ['md', 'yml'], # Include .md and .yml files 'tutorial' : {
'title': 'WireViz Tutorial'} 'path': Path(script_path).parent.parent.parent / 'tutorial',
groups['demos'] = {'path': Path(script_path).parent.parent.parent / 'examples', 'prefix': 'tutorial',
'prefix': 'demo'} 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'] input_extensions = ['.yml']
generated_extensions = ['.gv', '.png', '.svg', '.html', '.bom.tsv'] generated_extensions = ['.gv', '.png', '.svg', '.html', '.bom.tsv']