Skip to content

Commit 21c754a

Browse files
authored
remove no-file annotations (#418)
1 parent 3cb5795 commit 21c754a

File tree

11 files changed

+0
-14
lines changed
  • apps/svelte.dev/content/tutorial
    • 01-svelte/04-logic/06-await-blocks
    • 02-advanced-svelte
      • 02-transitions/04-custom-css-transitions
      • 06-classes-and-styles/02-class-shorthand
      • 07-composition/01-slots
      • 08-context/01-context-api
      • 12-next-steps/01-congratulations
    • 03-sveltekit/04-headers-and-cookies/02-cookies
    • 04-advanced-sveltekit

11 files changed

+0
-14
lines changed

apps/svelte.dev/content/tutorial/01-svelte/04-logic/06-await-blocks/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Most web applications have to deal with asynchronous data at some point. Svelte
2020
If you know that your promise can't reject, you can omit the `catch` block. You can also omit the first block if you don't want to show anything until the promise resolves:
2121

2222
```svelte
23-
/// no-file
2423
{#await promise then number}
2524
<p>you rolled a {number}!</p>
2625
{/await}

apps/svelte.dev/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Custom CSS transitions
55
The `svelte/transition` module has a handful of built-in transitions, but it's very easy to create your own. By way of example, this is the source of the `fade` transition:
66

77
```js
8-
/// no-file
98
function fade(node, { delay = 0, duration = 400 }) {
109
const o = +getComputedStyle(node).opacity;
1110

@@ -33,7 +32,6 @@ For example, the `fade` transition generates a CSS animation somewhat like this:
3332

3433
<!-- prettier-ignore-start -->
3534
```css
36-
/// no-file
3735
0% { opacity: 0 }
3836
10% { opacity: 0.1 }
3937
20% { opacity: 0.2 }

apps/svelte.dev/content/tutorial/02-advanced-svelte/06-classes-and-styles/02-class-shorthand/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Shorthand class directive
55
Often, the name of the class will be the same as the name of the value it depends on:
66

77
```svelte
8-
/// no-file
98
<button
109
class="card"
1110
class:flipped={flipped}

apps/svelte.dev/content/tutorial/02-advanced-svelte/07-composition/01-slots/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Slots
55
Just like elements can have children...
66

77
```html
8-
/// no-file
98
<div>
109
<p>I'm a child of the div</p>
1110
</div>

apps/svelte.dev/content/tutorial/02-advanced-svelte/08-context/01-context-api/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Like lifecycle functions such as `onMount`, `setContext` and `getContext` must b
7070
Your context object can include anything, including stores. This allows you to pass values that change over time to child components:
7171

7272
```js
73-
/// no-file
7473
// in a parent component
7574
import { setContext } from 'svelte';
7675
import { writable } from 'svelte/store';
@@ -81,7 +80,6 @@ setContext('my-context', {
8180
```
8281

8382
```js
84-
/// no-file
8583
// in a child component
8684
import { getContext } from 'svelte';
8785

apps/svelte.dev/content/tutorial/02-advanced-svelte/12-next-steps/01-congratulations/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ The next two parts of the tutorial will focus on SvelteKit, a full-fledged frame
99
If you're suffering from information overload and aren't ready to go through the SvelteKit tutorial yet, don't worry! You can use your existing Svelte knowledge without learning all of SvelteKit. Just run this in your terminal and follow the prompts...
1010

1111
```bash
12-
/// no-file
1312
npm create svelte@latest
1413
```
1514

apps/svelte.dev/content/tutorial/03-sveltekit/04-headers-and-cookies/02-cookies/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Now, if you reload the iframe, `Hello stranger!` becomes `Hello friend!`.
3737
Calling `cookies.set(name, ...)` causes a `Set-Cookie` header to be written, but it _also_ updates the internal map of cookies, meaning any subsequent calls to `cookies.get(name)` during the same request will return the updated value. Under the hood, the `cookies` API uses the popular `cookie` package — the options passed to `cookies.get` and `cookies.set` correspond to the `parse` and `serialize` options from the `cookie` [documentation](https://github.com/jshttp/cookie#api). SvelteKit sets the following defaults to make your cookies more secure:
3838

3939
```js
40-
/// no-file
4140
{
4241
httpOnly: true,
4342
secure: true,

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/01-hooks/04-handleerror/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Notice that we're _not_ showing the error message to the user. That's because er
1919

2020
<!-- prettier-ignore-start -->
2121
```js
22-
/// no-file
2322
{
2423
message: 'Internal Error' // or 'Not Found' for a 404
2524
}

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/03-link-options/01-preload/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Navigating to `/slow-a` will now be noticeably faster. Starting navigation on ho
2020
You can put the attribute on individual links, or on any element that _contains_ links. The default project template includes the attribute on the `<body>` element:
2121

2222
```html
23-
/// no-file
2423
<body data-sveltekit-preload-data>
2524
%sveltekit.body%
2625
</body>
@@ -43,7 +42,6 @@ Using `data-sveltekit-preload-data` may sometimes result in false positives - i
4342
You can also initiate preloading programmatically with `preloadCode` and `preloadData` imported from `$app/navigation`:
4443

4544
```js
46-
/// no-file
4745
import { preloadCode, preloadData } from '$app/navigation';
4846

4947
// preload the code and data needed to navigate to /foo

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/06-environment-variables/01-env-static-private/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ In turn, these modules can only be imported by _other_ server modules.
8080
The `static` in `$env/static/private` indicates that these values are known at build time, and can be _statically replaced_. This enables useful optimisations:
8181

8282
```js
83-
/// no-file
8483
import { FEATURE_FLAG_X } from '$env/static/private';
8584

8685
if (FEATURE_FLAG_X === 'enabled') {

0 commit comments

Comments
 (0)