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
Daniel Rojas
a810bd53ae
Add wv_cli.py, add Click requirement, change entry point
2021-10-16 22:08:00 +02:00
Daniel Rojas
8e59a14e4e
Simplify and clean up setup.py
2021-10-16 21:54:56 +02:00
Daniel Rojas
35e89d4fdf
Simplify main()
2021-10-16 21:54:56 +02:00
Daniel Rojas
a85ad89719
Add explanatory comment
2021-10-16 21:54:56 +02:00
Daniel Rojas
00be4747ad
Replace os.path with pathlib.Path where used
2021-10-16 21:54:56 +02:00
Daniel Rojas
b513051bc2
Equalize line weights and simplify CSS
...
Experiments in exporting PDF using `wkhtmltopdf` utility caused borders to disappear when set to 0.25mm, but 0.35mm renders fine
2021-10-16 21:52:05 +02:00
Daniel Rojas
a59f96aaa6
Apply suggestions from code review
...
Co-authored-by: kvid <kvid@users.noreply.github.com>
2021-10-16 21:52:05 +02:00
Daniel Rojas
aa9278da4b
Apply suggestions from code review
...
Co-authored-by: kvid <kvid@users.noreply.github.com>
2021-10-16 21:52:05 +02:00
Daniel Rojas
b2a2770f7a
Update smart_file_resolve()
2021-10-16 21:52:05 +02:00
Daniel Rojas
406bdd36f2
Use regex-based replacement
2021-10-16 21:52:05 +02:00
Daniel Rojas
02963101d0
Implement fontname and bgcolor(WIP) replacement
2021-10-16 21:52:05 +02:00
Daniel Rojas
5bed6de7ab
Consolidate code for replacing HTML placeholders
2021-10-16 21:52:05 +02:00
Daniel Rojas
36195e1cbb
Apply fontname and bgcolor to output HTML
...
Co-authored-by: kvid <kvid@users.noreply.github.com>
2021-10-16 21:52:05 +02:00
Daniel Rojas
960f20e6ef
Add type hint
...
Co-authored-by: kvid <kvid@users.noreply.github.com>
2021-10-16 21:52:05 +02:00
Daniel Rojas
95defd07c0
Add template metadata to demo02.yml
2021-10-16 21:52:05 +02:00
Daniel Rojas
eae2694b5d
Implement template-based HTML output
2021-10-16 21:52:05 +02:00
Daniel Rojas
6b1e274d57
Refactor functions for harness building
...
- Use pin names instead of pin indices, until the last moment when generating the ports for the GraphViz nodes
- `Harness.add_mate_pin()` now uses pin names
- Remove unused `if is_arrow()` check from `Harness.connect()`
- Consolidate calling of `Connector.activate_pin()` to prevent subtle bugs
- Call it from `connect()` and `add_mate_pin()`
- No longer call it from `create_graph()`
- Misc. other tuning
2021-10-16 21:46:31 +02:00
Daniel Rojas
f0b63de3c7
Simplify code
2021-10-14 18:03:30 +02:00
Daniel Rojas
02a800abef
Fix bug of arrows using the wrong port IDs
2021-10-14 18:03:18 +02:00
Daniel Rojas
50ea7f5771
Fix duplicates in syntax.md after rebase
2021-10-13 21:45:22 +02:00
Daniel Rojas
db6f2da232
Move selected test files to examples directory
2021-10-13 21:39:11 +02:00
Daniel Rojas
9ccd55ef93
Update syntax description (autogeneration, arrows)
...
Moved metadata and options info further down, so that the core functionality (connectors, cables, connection sets) comes first.
2021-10-13 21:39:11 +02:00
Daniel Rojas
2d701ee652
Resolve component level mate not revealing connection count
2021-10-13 21:39:11 +02:00
Daniel Rojas
2a62dae9ee
Resolve edge case of empty HTML tables
2021-10-13 21:39:11 +02:00
Daniel Rojas
8ea8248721
Squash feature/mate+autogenerate branch
2021-10-13 21:38:23 +02:00
Daniel Rojas
a6efd28124
Bump version in generated files
...
`.gv` and `.html` files include the version number as a comment.
Rebuild to avoid diffs during development
2021-10-11 22:11:24 +02:00
Daniel Rojas
4f4d63f029
Bump version to 0.4-dev
2021-10-11 22:08:49 +02:00
Daniel Rojas
eb7be156fa
Rebuild examples
2021-10-11 20:59:18 +02:00
Daniel Rojas
2629e1c0da
Bump version to 0.3
2021-10-11 20:55:53 +02:00
Daniel Rojas
36dfaea1f6
Update changelog
2021-10-11 20:54:39 +02:00
Daniel Rojas
3cc36e1573
Harmonize shebangs and encoding info
...
- Use `#!/usr/bin/env python3` on executable modules
- Remove shebangs on all other `.py` files
- Add UTF-8 encoding info where mising
2021-10-11 20:05:52 +02:00
Daniel Rojas
255569aec5
Add syntax documentation for cable length units
...
and reword `shield` explanation
2021-10-05 18:29:51 +02:00
Daniel Rojas
869ad6b8be
Rearrange syntax description
...
Move metadata and options info further down, so that the core functionality (connectors, cables, connection sets) comes first.
2021-10-05 18:15:25 +02:00
Daniel Rojas
48d2e7b0ec
Add temp/ to .gitignore
2021-10-03 21:37:09 +02:00
KV
7125f28760
Move color type aliases into wv_colors.py to avoid circular imports
2021-09-28 19:14:28 +02:00
KV
c34946183e
Support specifying hex colors for any color attributes
2021-09-28 19:14:28 +02:00