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

D2-Import Enhancement Suggestions #1815

Open
zachcp opened this issue Jan 26, 2024 · 1 comment
Open

D2-Import Enhancement Suggestions #1815

zachcp opened this issue Jan 26, 2024 · 1 comment

Comments

@zachcp
Copy link

zachcp commented Jan 26, 2024

Hi Team D2-lang,

D2 is really coming along, congrats on your progress/success. I have two suggestions related to importing D2 files that came up in the context of packaging some internal corporate icons/images and making them available for reuse. For the moment I will follow the pattern that you have adopted - e.g. make a stable accessible URL for the ICONS.

  1. Import a D2 file from a URL If that is possible I could make both the ICONS and the associated D2 file with a map to all the icons accessible universally. This would also unlock use of custom icons in quarto-d2 which renders D2 text in an isolated environment.

  2. Follow local file paths of imports If you import a D2 file that contains a local filepath to an icon then the icon will not be found if the D2 file is in a different directory. Following local imports would let you modularize D2 icon use.

Thanks again,
zach cp

@zachcp
Copy link
Author

zachcp commented May 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant