Skip to content

Commit 608e55b

Browse files
Sync svelte docs (#1432)
sync svelte docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 30fe5a0 commit 608e55b

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

apps/svelte.dev/content/docs/svelte/01-introduction/02-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Getting started
55

66
We recommend using [SvelteKit](../kit), which lets you [build almost anything](../kit/project-types). It's the official application framework from the Svelte team and powered by [Vite](https://vite.dev/). Create a new project with:
77

8-
```bash
8+
```sh
99
npx sv create myapp
1010
cd myapp
1111
npm install

apps/svelte.dev/content/docs/svelte/07-misc/02-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Unit tests allow you to test small isolated parts of your code. Integration test
1111

1212
To setup Vitest manually, first install it:
1313

14-
```bash
14+
```sh
1515
npm install -D vitest
1616
```
1717

@@ -167,7 +167,7 @@ It is possible to test your components in isolation using Vitest.
167167
168168
To get started, install jsdom (a library that shims DOM APIs):
169169

170-
```bash
170+
```sh
171171
npm install -D jsdom
172172
```
173173

apps/svelte.dev/content/docs/svelte/98-reference/.generated/compile-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ Some templating languages (including Svelte) will 'fix' HTML by turning `<span /
683683

684684
To automate this, run the dedicated migration:
685685

686-
```bash
686+
```sh
687687
npx sv migrate self-closing-tags
688688
```
689689

apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-compiler.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,17 @@ namespace AST {
364364
name: string;
365365
/** The 'y' in `on:x={y}` */
366366
expression: null | Expression;
367-
modifiers: string[];
367+
modifiers: Array<
368+
| 'capture'
369+
| 'nonpassive'
370+
| 'once'
371+
| 'passive'
372+
| 'preventDefault'
373+
| 'self'
374+
| 'stopImmediatePropagation'
375+
| 'stopPropagation'
376+
| 'trusted'
377+
>;
368378
}
369379
370380
/** A `style:` directive */

apps/svelte.dev/content/docs/svelte/98-reference/30-compiler-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ Some templating languages (including Svelte) will 'fix' HTML by turning `<span /
704704

705705
To automate this, run the dedicated migration:
706706

707-
```bash
707+
```sh
708708
npx sv migrate self-closing-tags
709709
```
710710

0 commit comments

Comments
 (0)