Daniel Rojas
d7b635dc56
Remove old stuff, slightly simplify code
2021-10-18 17:29:25 +02:00
Daniel Rojas
012dcb2c6e
More WIP
2021-10-18 17:23:15 +02:00
Daniel Rojas
d88e1f6edb
WIP
2021-10-18 13:42:51 +02:00
Daniel Rojas
104391421c
Implement HTML indentation
2021-10-18 12:20:40 +02:00
Daniel Rojas
64d22d5db4
WIP: refactor cable node generation
2021-10-17 20:43:38 +02:00
Daniel Rojas
29ff099e9a
Generate gauge string inside Cable object
2021-10-17 20:01:05 +02:00
Daniel Rojas
3e81a59c08
Rebuild demos
2021-10-17 19:22:59 +02:00
Daniel Rojas
9ed3cadd53
Further refactor connector node generation
2021-10-17 18:50:42 +02:00
Daniel Rojas
e1f03907bf
Refactor connector node generation
2021-10-17 16:13:45 +02:00
Daniel Rojas
8020bad94d
WIP
2021-10-17 15:33:41 +02:00
Daniel Rojas
d528bda636
Add temporary loop to demo01
...
for debugging purposes
2021-10-17 13:12:44 +02:00
Daniel Rojas
8569090ca2
Add metadata.title to demo01.yml
...
to avoid diffs later when calling via CLI
2021-10-17 13:11:19 +02:00
Daniel Rojas
1b70a63434
Rebuild all examples before refactoring
...
no diff should ocurr as a result of the refactoring
2021-10-17 13:02:31 +02:00
Daniel Rojas
f7b791afe2
Make prefix for autogenerated component names configurable
...
`edotor.net` does not seem to like leading underscores, which makes GraphViz debugging difficult.
2021-10-17 13:00:43 +02:00
Daniel Rojas
ba3f0248a5
Simplify Enum
2021-10-16 22:58:47 +02:00
Daniel Rojas
6f9bb67d02
Embed images into SVG output
2021-10-16 22:39:41 +02:00
Daniel Rojas
e31ed72655
Auto-assign missing harness title if reading from file
2021-10-16 22:27:00 +02:00
Daniel Rojas
d19c260940
Simplify file access operations
2021-10-16 22:27:00 +02:00
Daniel Rojas
45bcc1dd45
Make template separator character user-configurable
2021-10-16 22:27:00 +02:00
Daniel Rojas
08b5124adb
Add support for multiple prepended files
2021-10-16 22:26:59 +02:00
Daniel Rojas
5aaea651b1
Automatically include input file directory in list to resolve image paths
2021-10-16 22:26:59 +02:00
Daniel Rojas
b46d26319a
Update build_examples.py
2021-10-16 22:26:59 +02:00
Daniel Rojas
3aa1a2e651
Write docstring for parse() function
2021-10-16 22:26:59 +02:00
Daniel Rojas
8215113165
Add leading underscore to local helper functions
2021-10-16 22:26:59 +02:00
Daniel Rojas
e3530702f2
Allow specifying output directory and file name separately
2021-10-16 22:26:59 +02:00
Daniel Rojas
d7d7854bce
Consolidate wireviz.parse() to handle Path, str and Dict as input
2021-10-16 22:26:59 +02:00
Daniel Rojas
c702e20eba
Add 'black' badge to README.md
2021-10-16 22:09:59 +02:00
Daniel Rojas
58ab5cab91
Mention isort and black in contribution guidelines
2021-10-16 22:09:59 +02:00
Daniel Rojas
c89cf735ae
Apply some manual fixes, reapply black
2021-10-16 22:09:59 +02:00
Daniel Rojas
f92985a61c
Apply black
2021-10-16 22:09:59 +02:00
Daniel Rojas
344615483a
Apply isort
2021-10-16 22:09:59 +02:00
Daniel Rojas
6f8078eea3
Add black profile for isort
2021-10-16 22:09:59 +02:00
Daniel Rojas
65b8e36fe5
Create cache of graph to avoid generating it more than once
2021-10-16 22:08:01 +02:00
Daniel Rojas
fb2aae5515
Split file output logic and object return logic
...
Use `output_formats` parameter to specify which *files* to output to disk,
Use `return_types` parameter to specify which objects to return to a calling Python script
2021-10-16 22:08:01 +02:00
Daniel Rojas
3dae1cbca2
Improve REAME.md
2021-10-16 22:08:01 +02:00
Daniel Rojas
d6d1fbcf16
Output help string if no arguments are received
2021-10-16 22:08:01 +02:00
Daniel Rojas
c68d6419ba
Update README for new CLI commands
2021-10-16 22:08:01 +02:00
Daniel Rojas
a4343ae04c
Sort --format flags alphabetically
2021-10-16 22:08:01 +02:00
Daniel Rojas
5b3c2b3297
Add encoding info to wv_cli.py
2021-10-16 22:08:01 +02:00
Daniel Rojas
0cb0a4e054
Add main() to wireviz.py as fallback
2021-10-16 22:08:01 +02:00
Daniel Rojas
3c6b902867
Remove obsolete comments
2021-10-16 22:08:01 +02:00
Daniel Rojas
3a181f6f95
Fix smart file resolver for images
2021-10-16 22:08:01 +02:00
Daniel Rojas
b1fa2b9de9
Do not output .gv files by default
2021-10-16 22:08:01 +02:00
Daniel Rojas
6a08988ca9
Implement image path resolver
2021-10-16 22:08:01 +02:00
Daniel Rojas
a5b0fbe305
Split the YAML loading and parsing functions
2021-10-16 22:08:00 +02:00
Daniel Rojas
b53ce36046
Fix entry point
2021-10-16 22:08:00 +02:00
Daniel Rojas
d3e99abaa8
Only output requested file types ( closes #60 )
2021-10-16 22:08:00 +02:00
Daniel Rojas
77f668e553
Add CLI help strings
2021-10-16 22:08:00 +02:00
Daniel Rojas
19481b291b
Remove unneeded code from wireviz.py
...
Re-add `parse_file()` for building examples
bla
2021-10-16 22:08:00 +02:00
Daniel Rojas
1df45ab833
Implement working proof of concept
2021-10-16 22:08:00 +02:00