Skip to content

Commit

Permalink
Restructure the group dict initialization
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kvid committed Jul 23, 2020
1 parent eb7454b commit 78b9d36
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions src/wireviz/build_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@


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']
Expand Down

0 comments on commit 78b9d36

Please sign in to comment.