summaryrefslogtreecommitdiff
path: root/examples/framework-svelte/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-svelte/README.md')
-rw-r--r--examples/framework-svelte/README.md35
1 files changed, 32 insertions, 3 deletions
diff --git a/examples/framework-svelte/README.md b/examples/framework-svelte/README.md
index 465863f72..deaf1da76 100644
--- a/examples/framework-svelte/README.md
+++ b/examples/framework-svelte/README.md
@@ -1,9 +1,38 @@
# Using Svelte with Astro
-```
+This example showcases Astro's built-in support for [Svelte](https://svelte.dev/).
+
+## Installation
+
+### Automatic
+
+Bootstrap your Astro project with this template!
+
+```shell
npm init astro -- --template framework-svelte
```
-This example showcases Astro's built-in support for [Svelte](https://svelte.dev/).
+### Manual
+
+To use Svelte components in your Astro project:
+
+1. Install `@astrojs/renderer-svelte`
+
+ ```shell
+ npm i @astrojs/renderer-svelte
+ ```
+
+2. Add `"@astrojs/renderer-svelte"` to your `renderers` in `astro.config.mjs`.
+
+ ```js
+ export default {
+ renderers: [
+ "@astrojs/renderer-svelte",
+ // optionally, others...
+ ]
+ }
+ ```
+
+## Usage
-No configuration is needed to enable Svelte support—just start writing Svelte components in `src/components`.
+Write your Svelte components as `.svelte` files in your project.
s='nohover-highlight'> 2021-10-14[ci] collect statsGravatar FredKSchott 1-0/+1 2021-10-13Add Community Themes and separate Featured Theme (#1543)Gravatar Mark Teekman 2-8/+30 * Separate object for featured and community themes I've split up the two so there's the featured one at the top at the page and community ones below the official themes * Add community themes and change featured themes * Add comma after featured object 2021-10-13Change publish date el to be more accessible (#1522)Gravatar AsyncBanana 2-2/+2 2021-10-13[ci] yarn formatGravatar matthewp 1-1/+1 2021-10-13docs: unify concepts in Spanish version (#1545)Gravatar Jorge del Casar 6-11/+11 2021-10-13[ci] yarn formatGravatar matthewp 1-1/+1