From 5201886ef7e4132fcf418abc2dfce5c272a7817e Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 28 Sep 2024 15:35:16 -0400 Subject: [PATCH] remove unnecessary links --- .../docs/svelte/98-reference/20-svelte.md | 18 ------ .../svelte/98-reference/21-svelte-action.md | 4 -- .../svelte/98-reference/21-svelte-animate.md | 2 - .../svelte/98-reference/21-svelte-compiler.md | 10 --- .../svelte/98-reference/21-svelte-easing.md | 62 +++++++++---------- .../svelte/98-reference/21-svelte-motion.md | 4 -- .../svelte/98-reference/21-svelte-store.md | 12 ---- .../98-reference/21-svelte-transition.md | 14 ----- 8 files changed, 31 insertions(+), 95 deletions(-) diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md b/apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md index 12d685434e..4ae6ba2fdb 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md @@ -34,8 +34,6 @@ The first time the callback runs will be after the initial `onMount`. In runes mode use `$effect` instead. -https://svelte.dev/docs/svelte#afterupdate -
```ts @@ -53,8 +51,6 @@ The first time the callback runs will be before the initial `onMount`. In runes mode use `$effect.pre` instead. -https://svelte.dev/docs/svelte#beforeupdate -
```ts @@ -84,8 +80,6 @@ const dispatch = createEventDispatcher<{ }>(); ``` -https://svelte.dev/docs/svelte#createeventdispatcher -
```ts @@ -134,8 +128,6 @@ Retrieves the whole context map that belongs to the closest parent component. Must be called during component initialisation. Useful, for example, if you programmatically create a component and want to pass the existing context to it. -https://svelte.dev/docs/svelte#getallcontexts -
```ts @@ -152,8 +144,6 @@ function getAllContexts< Retrieves the context that belongs to the closest parent component with the specified `key`. Must be called during component initialisation. -https://svelte.dev/docs/svelte#getcontext -
```ts @@ -168,8 +158,6 @@ function getContext(key: any): T; Checks whether a given `key` has been set in the context of a parent component. Must be called during component initialisation. -https://svelte.dev/docs/svelte#hascontext -
```ts @@ -261,8 +249,6 @@ Schedules a callback to run immediately before the component is unmounted. Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the only one that runs inside a server-side component. -https://svelte.dev/docs/svelte#ondestroy -
```ts @@ -282,8 +268,6 @@ If a function is returned _synchronously_ from `onMount`, it will be called when `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api). -https://svelte.dev/docs/svelte#onmount -
```ts @@ -306,8 +290,6 @@ and returns that object. The context is then available to children of the compon Like lifecycle functions, this must be called during component initialisation. -https://svelte.dev/docs/svelte#setcontext -
```ts diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-action.md b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-action.md index 37ca65a283..b7798126fb 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-action.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-action.md @@ -18,8 +18,6 @@ export const myAction: Action ```dts @@ -74,8 +72,6 @@ export function myAction(node: HTMLElement, parameter: Parameter): ActionReturn< } ``` -Docs: https://svelte.dev/docs/svelte-action -
```dts diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-animate.md b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-animate.md index 1760b94b3f..fdceb3e70c 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-animate.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-animate.md @@ -14,8 +14,6 @@ import { flip } from 'svelte/animate'; The flip function calculates the start and end position of an element and animates between them, translating the x and y values. `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/). -https://svelte.dev/docs/svelte-animate#flip -
```ts diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-compiler.md b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-compiler.md index 4e7bb25652..dfa211ee96 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-compiler.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-compiler.md @@ -36,8 +36,6 @@ const VERSION: string; `compile` converts your `.svelte` source code into a JavaScript module that exports a component -https://svelte.dev/docs/svelte-compiler#svelte-compile -
```ts @@ -54,8 +52,6 @@ function compile( `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module. -https://svelte.dev/docs/svelte-compiler#svelte-compile -
```ts @@ -91,8 +87,6 @@ The parse function parses a component, returning only its abstract syntax tree. The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST. `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7. -https://svelte.dev/docs/svelte-compiler#svelte-parse -
```ts @@ -115,8 +109,6 @@ The parse function parses a component, returning only its abstract syntax tree. The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST. `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7. -https://svelte.dev/docs/svelte-compiler#svelte-parse -
```ts @@ -139,8 +131,6 @@ function parse( The preprocess function provides convenient hooks for arbitrarily transforming component source code. For example, it can be used to convert a