#How to create the monorepo type Starlight Docs

12 messages · Page 1 of 1 (latest)

verbal sun
#

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?

GitHub

Monorepo for all activities related to the a11y monsters, a cohort learning accessibility. - GitHub - at-the-vr/a11y-monsters: Monorepo for all activities related to the a11y monsters, a cohort lea...

#

when I run pnpm create astro --template starlight . in the project itself ⤵️

fading dust
#

Do you want to replace the whole current repo with a Starlight site, or add a Starlight site a to a subdirectory?

verbal sun
#

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

cedar sedge
#

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.

verbal sun
#

it creates the docs directory houston_100 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

fading dust
#

Does your root directory include a package.json? You'll also need a workspace configuration to tell pnpm how your packages are structured.

verbal sun
fading dust
#

Aha, so you probably need to first create a simple package.json in the root of the repo.

#

Running pnpm init should show you a wizard to walk you through the necessary steps.