From 1b879e1eb540b2f01881911383baf53588afbaaf Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 15 Oct 2024 23:53:19 -0400 Subject: [PATCH] remove no-file annotations --- .../tutorial/01-svelte/04-logic/06-await-blocks/index.md | 1 - .../02-transitions/04-custom-css-transitions/index.md | 2 -- .../06-classes-and-styles/02-class-shorthand/index.md | 1 - .../02-advanced-svelte/07-composition/01-slots/index.md | 1 - .../02-advanced-svelte/08-context/01-context-api/index.md | 2 -- .../12-next-steps/01-congratulations/index.md | 1 - .../03-sveltekit/04-headers-and-cookies/02-cookies/index.md | 1 - .../04-advanced-sveltekit/01-hooks/04-handleerror/index.md | 1 - .../04-advanced-sveltekit/03-link-options/01-preload/index.md | 2 -- .../06-environment-variables/01-env-static-private/index.md | 1 - .../04-advanced-sveltekit/07-conclusion/01-next-steps/index.md | 1 - 11 files changed, 14 deletions(-) diff --git a/apps/svelte.dev/content/tutorial/01-svelte/04-logic/06-await-blocks/index.md b/apps/svelte.dev/content/tutorial/01-svelte/04-logic/06-await-blocks/index.md index 9f2cfc0e5c..4eeb51c35a 100644 --- a/apps/svelte.dev/content/tutorial/01-svelte/04-logic/06-await-blocks/index.md +++ b/apps/svelte.dev/content/tutorial/01-svelte/04-logic/06-await-blocks/index.md @@ -20,7 +20,6 @@ Most web applications have to deal with asynchronous data at some point. Svelte 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: ```svelte -/// no-file {#await promise then number}

you rolled a {number}!

{/await} diff --git a/apps/svelte.dev/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/index.md b/apps/svelte.dev/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/index.md index 66f3b57547..979360d582 100644 --- a/apps/svelte.dev/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/index.md +++ b/apps/svelte.dev/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/index.md @@ -5,7 +5,6 @@ title: Custom CSS transitions 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: ```js -/// no-file function fade(node, { delay = 0, duration = 400 }) { const o = +getComputedStyle(node).opacity; @@ -33,7 +32,6 @@ For example, the `fade` transition generates a CSS animation somewhat like this: ```css -/// no-file 0% { opacity: 0 } 10% { opacity: 0.1 } 20% { opacity: 0.2 } diff --git a/apps/svelte.dev/content/tutorial/02-advanced-svelte/06-classes-and-styles/02-class-shorthand/index.md b/apps/svelte.dev/content/tutorial/02-advanced-svelte/06-classes-and-styles/02-class-shorthand/index.md index eab17eb077..2badd82462 100644 --- a/apps/svelte.dev/content/tutorial/02-advanced-svelte/06-classes-and-styles/02-class-shorthand/index.md +++ b/apps/svelte.dev/content/tutorial/02-advanced-svelte/06-classes-and-styles/02-class-shorthand/index.md @@ -5,7 +5,6 @@ title: Shorthand class directive Often, the name of the class will be the same as the name of the value it depends on: ```svelte -/// no-file