Skip to content

Commit f5eee77

Browse files
authored
remove unnecessary links (#162)
1 parent 2555b17 commit f5eee77

File tree

8 files changed

+31
-95
lines changed

8 files changed

+31
-95
lines changed

apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ The first time the callback runs will be after the initial `onMount`.
3434

3535
In runes mode use `$effect` instead.
3636

37-
https://svelte.dev/docs/svelte#afterupdate
38-
3937
<div class="ts-block">
4038

4139
```ts
@@ -53,8 +51,6 @@ The first time the callback runs will be before the initial `onMount`.
5351

5452
In runes mode use `$effect.pre` instead.
5553

56-
https://svelte.dev/docs/svelte#beforeupdate
57-
5854
<div class="ts-block">
5955

6056
```ts
@@ -84,8 +80,6 @@ const dispatch = createEventDispatcher<{
8480
}>();
8581
```
8682

87-
https://svelte.dev/docs/svelte#createeventdispatcher
88-
8983
<div class="ts-block">
9084

9185
```ts
@@ -134,8 +128,6 @@ Retrieves the whole context map that belongs to the closest parent component.
134128
Must be called during component initialisation. Useful, for example, if you
135129
programmatically create a component and want to pass the existing context to it.
136130

137-
https://svelte.dev/docs/svelte#getallcontexts
138-
139131
<div class="ts-block">
140132

141133
```ts
@@ -152,8 +144,6 @@ function getAllContexts<
152144
Retrieves the context that belongs to the closest parent component with the specified `key`.
153145
Must be called during component initialisation.
154146

155-
https://svelte.dev/docs/svelte#getcontext
156-
157147
<div class="ts-block">
158148

159149
```ts
@@ -168,8 +158,6 @@ function getContext<T>(key: any): T;
168158
Checks whether a given `key` has been set in the context of a parent component.
169159
Must be called during component initialisation.
170160

171-
https://svelte.dev/docs/svelte#hascontext
172-
173161
<div class="ts-block">
174162

175163
```ts
@@ -261,8 +249,6 @@ Schedules a callback to run immediately before the component is unmounted.
261249
Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the
262250
only one that runs inside a server-side component.
263251

264-
https://svelte.dev/docs/svelte#ondestroy
265-
266252
<div class="ts-block">
267253

268254
```ts
@@ -282,8 +268,6 @@ If a function is returned _synchronously_ from `onMount`, it will be called when
282268

283269
`onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
284270

285-
https://svelte.dev/docs/svelte#onmount
286-
287271
<div class="ts-block">
288272

289273
```ts
@@ -306,8 +290,6 @@ and returns that object. The context is then available to children of the compon
306290

307291
Like lifecycle functions, this must be called during component initialisation.
308292

309-
https://svelte.dev/docs/svelte#setcontext
310-
311293
<div class="ts-block">
312294

313295
```ts

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export const myAction: Action<HTMLDivElement, { someProperty: boolean } | undefi
1818
You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
1919
See interface `ActionReturn` for more details.
2020

21-
Docs: https://svelte.dev/docs/svelte-action
22-
2321
<div class="ts-block">
2422

2523
```dts
@@ -74,8 +72,6 @@ export function myAction(node: HTMLElement, parameter: Parameter): ActionReturn<
7472
}
7573
```
7674

77-
Docs: https://svelte.dev/docs/svelte-action
78-
7975
<div class="ts-block">
8076

8177
```dts

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import { flip } from 'svelte/animate';
1414
The flip function calculates the start and end position of an element and animates between them, translating the x and y values.
1515
`flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).
1616

17-
https://svelte.dev/docs/svelte-animate#flip
18-
1917
<div class="ts-block">
2018

2119
```ts

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const VERSION: string;
3636

3737
`compile` converts your `.svelte` source code into a JavaScript module that exports a component
3838

39-
https://svelte.dev/docs/svelte-compiler#svelte-compile
40-
4139
<div class="ts-block">
4240

4341
```ts
@@ -54,8 +52,6 @@ function compile(
5452

5553
`compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module.
5654

57-
https://svelte.dev/docs/svelte-compiler#svelte-compile
58-
5955
<div class="ts-block">
6056

6157
```ts
@@ -91,8 +87,6 @@ The parse function parses a component, returning only its abstract syntax tree.
9187
The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
9288
`modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
9389

94-
https://svelte.dev/docs/svelte-compiler#svelte-parse
95-
9690
<div class="ts-block">
9791

9892
```ts
@@ -115,8 +109,6 @@ The parse function parses a component, returning only its abstract syntax tree.
115109
The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
116110
`modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
117111

118-
https://svelte.dev/docs/svelte-compiler#svelte-parse
119-
120112
<div class="ts-block">
121113

122114
```ts
@@ -139,8 +131,6 @@ function parse(
139131
The preprocess function provides convenient hooks for arbitrarily transforming component source code.
140132
For example, it can be used to convert a <style lang="sass"> block into vanilla CSS.
141133

142-
https://svelte.dev/docs/svelte-compiler#svelte-preprocess
143-
144134
<div class="ts-block">
145135

146136
```ts

0 commit comments

Comments
 (0)