I have this Repo that I want to turn into Starlight Docs but when I try to run the installation cmd, I receive Directory is not empty error from terminal.
How to resolve this?
#How to create the monorepo type Starlight Docs
12 messages · Page 1 of 1 (latest)
Do you want to replace the whole current repo with a Starlight site, or add a Starlight site a to a subdirectory?
starlight site to be a subdirectory, just like how starlight docs are working right now (if that sounds correct)
where the git and installation is done in root and content is written in docs subdirectory
uhm, if you are installing starlight inside a monorepo you could do a ./docs path and choose to not initialize git from the astro cli. This way you can use git from your parent directory.
ok lemme try that
it creates the docs directory
but
what I want is that I can install the dependencies right from the root directory (like how starlight docs repo works)
and later update the content inside docs
Does your root directory include a package.json? You'll also need a workspace configuration to tell pnpm how your packages are structured.
https://github.com/at-the-vr/a11y-monsters/tree/main this is that repo (without package.json) that I am converting into starlight