clauderic / dnd-kit

The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
http://dndkit.com
MIT License
12.71k stars 632 forks source link

Code Sandbox for Experimental Docs #1441

Open ChurroC opened 3 months ago

ChurroC commented 3 months ago

Just wondering if this is something the experimental docs could use. I’ve been recently looking through the experimental docs and I really love how innovative they are. And I kinda want to contribute a bit and was wondering if you would mind using code sandbox for showing code examples that are editable.

clauderic commented 3 months ago

That's a great idea! If you want to work on the docs locally just make sure to install the mintlify cli

ChurroC commented 3 months ago

That's a great idea! If you want to work on the docs locally just make sure to install the mintlify cli

This might just be me but I can’t seem to figure out how to add custom dependencies to mintlify. I’ve tried searching it up but I don’t know where to add dependencies. I even tried to import from a cdn but that didn’t work either.

clauderic commented 3 months ago

What are you trying to add? Sandpack?

I'm told dependency management is coming very soon to mintlify. In the meantime I have been using iframes that point to storybook and we could also add other endpoints if needed, like apps/playground.

I think you can also include a script.js file https://mintlify.com/docs/integrations/custom/js