Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 168 #174

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Fix 168 #174

merged 2 commits into from
Oct 26, 2022

Conversation

2bndy5
Copy link
Collaborator

@2bndy5 2bndy5 commented Oct 25, 2022

resolves #168

This basically removes the commas from the substituted attributes ( triggered by xref attribute) and adds a couple unit tests to make sure the dot executable doesn't error out.

I have also visually verified that the graphs generated in the test are as expected. There might be a better way to inspect the SVG output, but I'd prefer to do that with a generated SVG file; this theme's graphviz ext embeds SVG data directly into the HTML for good reasons.

parametrize graphviz tests

fix type hint in test func obj

ensure xref to py domain
@jbms
Copy link
Owner

jbms commented Oct 26, 2022

If you have other comma-separated attributes next to it, does it work to remove the commas?

@jbms
Copy link
Owner

jbms commented Oct 26, 2022

If you have other comma-separated attributes next to it, does it work to remove the commas?

Nevermind, I see that commas are optional.

Looks good to me, thanks.

@2bndy5
Copy link
Collaborator Author

2bndy5 commented Oct 26, 2022

Yeah, only the whitespace between attributes is important.

I'll merge this and tag main with v0.10 because the code annotations feature is taking me longer to polish than I had hoped.

@2bndy5 2bndy5 merged commit dd7fac3 into main Oct 26, 2022
@2bndy5 2bndy5 deleted the fix-168 branch October 26, 2022 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[theme's graphviz ext] xref attr assumes square brackets
2 participants