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

Snippets only works on top-level #183

Open
HowieG opened this issue May 24, 2024 · 0 comments
Open

Snippets only works on top-level #183

HowieG opened this issue May 24, 2024 · 0 comments

Comments

@HowieG
Copy link
Contributor

HowieG commented May 24, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant