Skip to content

Commit d87bf17

Browse files
authored
chore: remove links from docs (#13425)
* chore: remove links from docs * regenerate
1 parent 35ebbe6 commit d87bf17

File tree

12 files changed

+30
-194
lines changed

12 files changed

+30
-194
lines changed

packages/svelte/src/action/public.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
* };
2424
* }
2525
* ```
26-
*
27-
* Docs: https://svelte.dev/docs/svelte-action
2826
*/
2927
export interface ActionReturn<
3028
Parameter = undefined,
@@ -54,8 +52,6 @@ export interface ActionReturn<
5452
*
5553
* You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
5654
* See interface `ActionReturn` for more details.
57-
*
58-
* Docs: https://svelte.dev/docs/svelte-action
5955
*/
6056
export interface Action<
6157
Element = HTMLElement,

packages/svelte/src/animate/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { cubicOut } from '../easing/index.js';
55
* The flip function calculates the start and end position of an element and animates between them, translating the x and y values.
66
* `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).
77
*
8-
* https://svelte.dev/docs/svelte-animate#flip
98
* @param {Element} node
109
* @param {{ from: DOMRect; to: DOMRect }} fromTo
1110
* @param {FlipParams} params

packages/svelte/src/compiler/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export { default as preprocess } from './preprocess/index.js';
1515
/**
1616
* `compile` converts your `.svelte` source code into a JavaScript module that exports a component
1717
*
18-
* https://svelte.dev/docs/svelte-compiler#svelte-compile
1918
* @param {string} source The component source code
2019
* @param {CompileOptions} options The compiler options
2120
* @returns {CompileResult}
@@ -54,7 +53,6 @@ export function compile(source, options) {
5453
/**
5554
* `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module.
5655
*
57-
* https://svelte.dev/docs/svelte-compiler#svelte-compile
5856
* @param {string} source The component source code
5957
* @param {ModuleCompileOptions} options
6058
* @returns {CompileResult}
@@ -74,7 +72,6 @@ export function compileModule(source, options) {
7472
* The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
7573
* `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
7674
*
77-
* https://svelte.dev/docs/svelte-compiler#svelte-parse
7875
* @overload
7976
* @param {string} source
8077
* @param {{ filename?: string; modern: true }} options
@@ -87,7 +84,6 @@ export function compileModule(source, options) {
8784
* The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
8885
* `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
8986
*
90-
* https://svelte.dev/docs/svelte-compiler#svelte-parse
9187
* @overload
9288
* @param {string} source
9389
* @param {{ filename?: string; modern?: false }} [options]
@@ -100,7 +96,6 @@ export function compileModule(source, options) {
10096
* The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
10197
* `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
10298
*
103-
* https://svelte.dev/docs/svelte-compiler#svelte-parse
10499
* @param {string} source
105100
* @param {{ filename?: string; rootDir?: string; modern?: boolean }} [options]
106101
* @returns {AST.Root | LegacyRoot}

packages/svelte/src/compiler/preprocess/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ async function process_markup(process, source) {
330330
* The preprocess function provides convenient hooks for arbitrarily transforming component source code.
331331
* For example, it can be used to convert a <style lang="sass"> block into vanilla CSS.
332332
*
333-
* https://svelte.dev/docs/svelte-compiler#svelte-preprocess
334333
* @param {string} source
335334
* @param {PreprocessorGroup | PreprocessorGroup[]} preprocessor
336335
* @param {{ filename?: string }} [options]

packages/svelte/src/easing/index.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Distributed under MIT License https://github.com/mattdesl/eases/blob/master/LICE
44
*/
55

66
/**
7-
* https://svelte.dev/docs/svelte-easing
87
* @param {number} t
98
* @returns {number}
109
*/
@@ -13,7 +12,6 @@ export function linear(t) {
1312
}
1413

1514
/**
16-
* https://svelte.dev/docs/svelte-easing
1715
* @param {number} t
1816
* @returns {number}
1917
*/
@@ -24,7 +22,6 @@ export function backInOut(t) {
2422
}
2523

2624
/**
27-
* https://svelte.dev/docs/svelte-easing
2825
* @param {number} t
2926
* @returns {number}
3027
*/
@@ -34,7 +31,6 @@ export function backIn(t) {
3431
}
3532

3633
/**
37-
* https://svelte.dev/docs/svelte-easing
3834
* @param {number} t
3935
* @returns {number}
4036
*/
@@ -44,7 +40,6 @@ export function backOut(t) {
4440
}
4541

4642
/**
47-
* https://svelte.dev/docs/svelte-easing
4843
* @param {number} t
4944
* @returns {number}
5045
*/
@@ -66,7 +61,6 @@ export function bounceOut(t) {
6661
}
6762

6863
/**
69-
* https://svelte.dev/docs/svelte-easing
7064
* @param {number} t
7165
* @returns {number}
7266
*/
@@ -75,7 +69,6 @@ export function bounceInOut(t) {
7569
}
7670

7771
/**
78-
* https://svelte.dev/docs/svelte-easing
7972
* @param {number} t
8073
* @returns {number}
8174
*/
@@ -84,7 +77,6 @@ export function bounceIn(t) {
8477
}
8578

8679
/**
87-
* https://svelte.dev/docs/svelte-easing
8880
* @param {number} t
8981
* @returns {number}
9082
*/
@@ -94,7 +86,6 @@ export function circInOut(t) {
9486
}
9587

9688
/**
97-
* https://svelte.dev/docs/svelte-easing
9889
* @param {number} t
9990
* @returns {number}
10091
*/
@@ -103,7 +94,6 @@ export function circIn(t) {
10394
}
10495

10596
/**
106-
* https://svelte.dev/docs/svelte-easing
10797
* @param {number} t
10898
* @returns {number}
10999
*/
@@ -112,7 +102,6 @@ export function circOut(t) {
112102
}
113103

114104
/**
115-
* https://svelte.dev/docs/svelte-easing
116105
* @param {number} t
117106
* @returns {number}
118107
*/
@@ -121,7 +110,6 @@ export function cubicInOut(t) {
121110
}
122111

123112
/**
124-
* https://svelte.dev/docs/svelte-easing
125113
* @param {number} t
126114
* @returns {number}
127115
*/
@@ -130,7 +118,6 @@ export function cubicIn(t) {
130118
}
131119

132120
/**
133-
* https://svelte.dev/docs/svelte-easing
134121
* @param {number} t
135122
* @returns {number}
136123
*/
@@ -140,7 +127,6 @@ export function cubicOut(t) {
140127
}
141128

142129
/**
143-
* https://svelte.dev/docs/svelte-easing
144130
* @param {number} t
145131
* @returns {number}
146132
*/
@@ -154,7 +140,6 @@ export function elasticInOut(t) {
154140
}
155141

156142
/**
157-
* https://svelte.dev/docs/svelte-easing
158143
* @param {number} t
159144
* @returns {number}
160145
*/
@@ -163,7 +148,6 @@ export function elasticIn(t) {
163148
}
164149

165150
/**
166-
* https://svelte.dev/docs/svelte-easing
167151
* @param {number} t
168152
* @returns {number}
169153
*/
@@ -172,7 +156,6 @@ export function elasticOut(t) {
172156
}
173157

174158
/**
175-
* https://svelte.dev/docs/svelte-easing
176159
* @param {number} t
177160
* @returns {number}
178161
*/
@@ -185,7 +168,6 @@ export function expoInOut(t) {
185168
}
186169

187170
/**
188-
* https://svelte.dev/docs/svelte-easing
189171
* @param {number} t
190172
* @returns {number}
191173
*/
@@ -194,7 +176,6 @@ export function expoIn(t) {
194176
}
195177

196178
/**
197-
* https://svelte.dev/docs/svelte-easing
198179
* @param {number} t
199180
* @returns {number}
200181
*/
@@ -203,7 +184,6 @@ export function expoOut(t) {
203184
}
204185

205186
/**
206-
* https://svelte.dev/docs/svelte-easing
207187
* @param {number} t
208188
* @returns {number}
209189
*/
@@ -215,7 +195,6 @@ export function quadInOut(t) {
215195
}
216196

217197
/**
218-
* https://svelte.dev/docs/svelte-easing
219198
* @param {number} t
220199
* @returns {number}
221200
*/
@@ -224,7 +203,6 @@ export function quadIn(t) {
224203
}
225204

226205
/**
227-
* https://svelte.dev/docs/svelte-easing
228206
* @param {number} t
229207
* @returns {number}
230208
*/
@@ -233,7 +211,6 @@ export function quadOut(t) {
233211
}
234212

235213
/**
236-
* https://svelte.dev/docs/svelte-easing
237214
* @param {number} t
238215
* @returns {number}
239216
*/
@@ -242,7 +219,6 @@ export function quartInOut(t) {
242219
}
243220

244221
/**
245-
* https://svelte.dev/docs/svelte-easing
246222
* @param {number} t
247223
* @returns {number}
248224
*/
@@ -251,7 +227,6 @@ export function quartIn(t) {
251227
}
252228

253229
/**
254-
* https://svelte.dev/docs/svelte-easing
255230
* @param {number} t
256231
* @returns {number}
257232
*/
@@ -260,7 +235,6 @@ export function quartOut(t) {
260235
}
261236

262237
/**
263-
* https://svelte.dev/docs/svelte-easing
264238
* @param {number} t
265239
* @returns {number}
266240
*/
@@ -270,7 +244,6 @@ export function quintInOut(t) {
270244
}
271245

272246
/**
273-
* https://svelte.dev/docs/svelte-easing
274247
* @param {number} t
275248
* @returns {number}
276249
*/
@@ -279,7 +252,6 @@ export function quintIn(t) {
279252
}
280253

281254
/**
282-
* https://svelte.dev/docs/svelte-easing
283255
* @param {number} t
284256
* @returns {number}
285257
*/
@@ -288,7 +260,6 @@ export function quintOut(t) {
288260
}
289261

290262
/**
291-
* https://svelte.dev/docs/svelte-easing
292263
* @param {number} t
293264
* @returns {number}
294265
*/
@@ -297,7 +268,6 @@ export function sineInOut(t) {
297268
}
298269

299270
/**
300-
* https://svelte.dev/docs/svelte-easing
301271
* @param {number} t
302272
* @returns {number}
303273
*/
@@ -308,7 +278,6 @@ export function sineIn(t) {
308278
}
309279

310280
/**
311-
* https://svelte.dev/docs/svelte-easing
312281
* @param {number} t
313282
* @returns {number}
314283
*/

packages/svelte/src/index-client.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { lifecycle_outside_component } from './internal/shared/errors.js';
1616
*
1717
* `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
1818
*
19-
* https://svelte.dev/docs/svelte#onmount
2019
* @template T
2120
* @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn
2221
* @returns {void}
@@ -42,7 +41,6 @@ export function onMount(fn) {
4241
* Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the
4342
* only one that runs inside a server-side component.
4443
*
45-
* https://svelte.dev/docs/svelte#ondestroy
4644
* @param {() => any} fn
4745
* @returns {void}
4846
*/
@@ -84,7 +82,6 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
8482
* }>();
8583
* ```
8684
*
87-
* https://svelte.dev/docs/svelte#createeventdispatcher
8885
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher
8986
* @template {Record<string, any>} [EventMap = any]
9087
* @returns {EventDispatcher<EventMap>}
@@ -124,7 +121,6 @@ export function createEventDispatcher() {
124121
*
125122
* In runes mode use `$effect.pre` instead.
126123
*
127-
* https://svelte.dev/docs/svelte#beforeupdate
128124
* @deprecated Use `$effect.pre` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
129125
* @param {() => void} fn
130126
* @returns {void}
@@ -148,7 +144,6 @@ export function beforeUpdate(fn) {
148144
*
149145
* In runes mode use `$effect` instead.
150146
*
151-
* https://svelte.dev/docs/svelte#afterupdate
152147
* @deprecated Use `$effect` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
153148
* @param {() => void} fn
154149
* @returns {void}

packages/svelte/src/internal/client/runtime.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ export function set_signal_status(signal, status) {
859859
* Retrieves the context that belongs to the closest parent component with the specified `key`.
860860
* Must be called during component initialisation.
861861
*
862-
* https://svelte.dev/docs/svelte#getcontext
863862
* @template T
864863
* @param {any} key
865864
* @returns {T}
@@ -885,7 +884,6 @@ export function getContext(key) {
885884
*
886885
* Like lifecycle functions, this must be called during component initialisation.
887886
*
888-
* https://svelte.dev/docs/svelte#setcontext
889887
* @template T
890888
* @param {any} key
891889
* @param {T} context
@@ -901,7 +899,6 @@ export function setContext(key, context) {
901899
* Checks whether a given `key` has been set in the context of a parent component.
902900
* Must be called during component initialisation.
903901
*
904-
* https://svelte.dev/docs/svelte#hascontext
905902
* @param {any} key
906903
* @returns {boolean}
907904
*/
@@ -915,7 +912,6 @@ export function hasContext(key) {
915912
* Must be called during component initialisation. Useful, for example, if you
916913
* programmatically create a component and want to pass the existing context to it.
917914
*
918-
* https://svelte.dev/docs/svelte#getallcontexts
919915
* @template {Map<any, any>} [T=Map<any, any>]
920916
* @returns {T}
921917
*/

0 commit comments

Comments
 (0)