-
Notifications
You must be signed in to change notification settings - Fork 96
Script to check drawio files #530
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
base: release-v2
Are you sure you want to change the base?
Conversation
@cernus76 Cool, thanks for trying it out! By the way, is dev really supposed to be the target branch of this PR? We might want to strip the In the future, the validator could have something similar and make a suggestion to embed any images. That would be nice. |
@julian-schambeck I have changed for |
@cernus76 Thanks for the script. |
@navyakhurana @julian-schambeck @jmsrpp
As we have a regression with the new version of drawio, I have created a script to check the drawio files to see if there are external references via
image=http
references.We could probably include this in a pre-check when a user submits a file.
Usage:
./src/_scripts/_validate_drawio_external_refs.zsh <path_of_the_ref-arch_folder>
Example:
./src/_scripts/_validate_drawio_external_refs.zsh /Users/<my_user_id>/architecture-center/docs
Output:
Or, we can also scan one single file:
Output: