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 class graph generation #1124

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

MusicalNinjaDad
Copy link

Regenerating the class diagrams for the docs leads to blank diagrams (dot, png & svg files are affected). This occurs via both make doc and make preview

The issue appears to have been that the search path gpiozero/**/*.py was split into gpiozero/**, as the base search path and *.py as the glob pattern.

I have simply adjusted the approach to take PROJECT_ROOT as the base path and the entire search_path as the glob.

Additionally I have committed the regenerated images which appear, to my eye, to contain all the correct elements but have a new layout, probably due to improvements in the generation algorithm.

Feel free to cherry pick the last 2 commits from this set, if you don't want the extra changes as described in #1122

This closes #1123

.gitignore Outdated Show resolved Hide resolved
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.

Generating class diagrams for docs fails (silently) and breaks diagrams
2 participants