chore(basics): update README folder structure (#4417)

This commit is contained in:
Rui Saraiva 2022-08-22 19:26:44 +01:00 committed by GitHub
parent 7310e8a178
commit be2774b357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,8 @@ Inside of your Astro project, you'll see the following folders and files:
│ └── favicon.svg │ └── favicon.svg
├── src/ ├── src/
│ ├── components/ │ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro │ │ └── Layout.astro
│ └── pages/ │ └── pages/
│ └── index.astro │ └── index.astro
@ -22,7 +24,7 @@ Inside of your Astro project, you'll see the following folders and files:
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts. There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory. Any static assets, like images, can be placed in the `public/` directory.