You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to have d2 installed (when skipGeneration is false), but of course it isn't when you are building with GitHub Actions, Netlify, or Vercel.
Mermaid doesn't have this issue because it is a JavaScript library, so build plugins can simply declare a dependency and use it.
Describe the solution you'd like
The D2 project is working on a JavaScript wrapper: d2js.
It would be great if this plugin could simply import and use this instead of requiring d2 installed.
It will make builds easier on platforms like GitHub Actions, Netlify, and Vercel.
Describe alternatives you've considered
I thought about adding build steps to preinstall d2 but I can't apt-get install d2 (yet).
However, your advice to skipGeneration is the most realistic solution right now.
Additional Context
Admittedly, d2js is young (3 days old), but recording this request because it seems like the smartest long-term direction for a plugin like this.
Related, I was surprised to see astro-diagram has been archived, making this plugin a top choice for embedding diagrams.
The text was updated successfully, but these errors were encountered:
This have been a topic I've been following closely and I've mentioned a few times in the repository that this will be ultimately the way to go in the long run like you mentioned.
This is definitely way too early to even start experimenting with this as the package is not even available on npm yet but I'll definitely keep an eye on this and will be looking to migrate to this once it's stable enough and a feature parity with the current package can be achieved.
Is your feature request related to a problem?
We need to have
d2
installed (whenskipGeneration
is false), but of course it isn't when you are building with GitHub Actions, Netlify, or Vercel.Mermaid doesn't have this issue because it is a JavaScript library, so build plugins can simply declare a dependency and use it.
Describe the solution you'd like
The D2 project is working on a JavaScript wrapper: d2js.
It would be great if this plugin could simply import and use this instead of requiring
d2
installed.It will make builds easier on platforms like GitHub Actions, Netlify, and Vercel.
Describe alternatives you've considered
I thought about adding build steps to preinstall
d2
but I can'tapt-get install d2
(yet).However, your advice to
skipGeneration
is the most realistic solution right now.Additional Context
Admittedly,
d2js
is young (3 days old), but recording this request because it seems like the smartest long-term direction for a plugin like this.Related, I was surprised to see astro-diagram has been archived, making this plugin a top choice for embedding diagrams.
The text was updated successfully, but these errors were encountered: