docs icon indicating copy to clipboard operation
docs copied to clipboard

Snippets only works on top-level

Open HowieG opened this issue 1 year ago • 3 comments

Hi,

I have /snippets/supported-models.mdx which renders in /quickstart.mdx but not /v1/concepts/sdk-reference.mdx

I'm doing the same in both `import SupportedModels from '/snippets/supported-models.mdx'

`

I would try to change it to ../../snippets/supported-models.mdx but I get

Invalid import path ../../snippets/supported-models.mdx in v1/concepts/sdk-reference.mdx. Import source must start with "/snippets/"

and I read #22 saying that these imports aren't path-based they're just hacky references.

Please let me know if I should be doing anything differently!

Screenshot 2024-05-24 at 3 18 36 PM Screenshot 2024-05-24 at 3 35 13 PM

HowieG avatar May 24 '24 22:05 HowieG

getting this error as well, would love support for a normal path instead of only top-level

sahil-lalani avatar Nov 01 '24 23:11 sahil-lalani

this is awful. im getting this too

conorplunkett avatar Feb 28 '25 18:02 conorplunkett

is this still an open issue?

david-goodfellow avatar Jul 16 '25 20:07 david-goodfellow