-
|
Can't seem to accept the discord invite so asking here. I'm trying to create a github pages using astro, and decided to add the starlight package following the manual setup. I apparently require a Here's the branch on my repo with very little in there other than dummy content: https://github.com/wallace-js/wallace-js.github.io/tree/starlight# I'm getting two errors, the first being this one when I so much as hover over Which, following the stack trace, seemed to indicate I can temporarily get rid of the error setting an empty array in my config: But that leaves me with the second error (or maybe this is the primary error masked by the first) which is a 404 going to http://localhost:4321/wallace/docs even though I do have this file with contents as per the guide: Interestingly, if I rename that file to index.astro, I don't get the error, just the 404. I've been clashing heads with chatGPT for an hour on this (I don't normally lean on AI but thought I'd give it a shot for this) to no avail. I've been deleting the cache and re-running and trying various permutations of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Thanks for the report 🙌 Sharing here our Discord URL in case you may not have been using the correct one: https://astro.build/chat/ I guess there are 2 issues at play here:
As mentioned in the "Add content" section of the getting started guide, Starlight content is located in the You do indeed have an If you only want your Starlight content to be available at I just tested locally and can confirm that both approaches work as expected.
I am not a GitHub Pages expert, but it looks like you are not using the documented and recommended approach to deploy an Astro site to GitHub Pages. I would highly recommend following that guide to set up your deployment correctly. If it can help, I'm also sharing this repository which uses Starlight and is deployed to GitHub Pages, you can maybe also check its configuration for reference if needed. |
Beta Was this translation helpful? Give feedback.
Thanks for the report 🙌
Sharing here our Discord URL in case you may not have been using the correct one: https://astro.build/chat/
I guess there are 2 issues at play here:
As mentioned in the "Add content" section of the getting started guide, Starlight content is located in the
src/content/docs/directory.You do indeed have an
index.mdfile insite/src/content/docs/directory, but you also have asite/src/pages/index.astrofile that is taking precedence over the content route. Deleting thesite/src/pages/index.astrofile and visitinghttp://localhost:4321/wallace/does lo…