-
Hi, I’ve been trying to add Starlight to an existing Astro project and followed the steps over at the https://starlight.astro.build/manual-setup/ but I’m stuck. For some reason, the routes aren't picking up content from src/content/docs as they should? Despite trying different folder structures, such as adding nested docs and wiki folders within src/content/docs (i.e., src/content/docs/docs and src/content/docs/wiki), the routes are not resolving correctly. When attempting to access the routes, it appears to incorrectly match with node_modules/@astrojs/starlight/index.astro instead of the expected content paths. Link to my repo Does anyone have any ideas what I might be doing wrong or something I overlooked? Thanks a ton for any help you can give! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @bjorne84, I'm not sure what exactly is the problem you are facing... Your repo is working fine. Your
Those two routes are working as intended. The error message you sent about there being no match for |
Beta Was this translation helpful? Give feedback.
-
thanks, you are right |
Beta Was this translation helpful? Give feedback.
Hey @bjorne84, I'm not sure what exactly is the problem you are facing... Your repo is working fine.
Your
docs
collection has the following structure:docs
test2.md
-- Defines the route/docs/test2
wiki
test.md
-- Defines the route/wiki/test
Those two routes are working as intended.
The error message you sent about there being no match for
/docs
is correct. Your project doesn't define any/docs
route. Neither with a custom page nor using Starlight.