From d87bf178c51c1edea94eeb854cef2bf05bd02688 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 28 Sep 2024 15:34:12 -0400 Subject: [PATCH] chore: remove links from docs (#13425) * chore: remove links from docs * regenerate --- packages/svelte/src/action/public.d.ts | 4 - packages/svelte/src/animate/index.js | 1 - packages/svelte/src/compiler/index.js | 5 - .../svelte/src/compiler/preprocess/index.js | 1 - packages/svelte/src/easing/index.js | 31 ---- packages/svelte/src/index-client.js | 5 - .../svelte/src/internal/client/runtime.js | 4 - packages/svelte/src/motion/spring.js | 1 - packages/svelte/src/motion/tweened.js | 1 - packages/svelte/src/store/shared/index.js | 6 - packages/svelte/src/transition/index.js | 8 - packages/svelte/types/index.d.ts | 157 ++++-------------- 12 files changed, 30 insertions(+), 194 deletions(-) diff --git a/packages/svelte/src/action/public.d.ts b/packages/svelte/src/action/public.d.ts index afd92e116d..5d23b4d608 100644 --- a/packages/svelte/src/action/public.d.ts +++ b/packages/svelte/src/action/public.d.ts @@ -23,8 +23,6 @@ * }; * } * ``` - * - * Docs: https://svelte.dev/docs/svelte-action */ export interface ActionReturn< Parameter = undefined, @@ -54,8 +52,6 @@ export interface ActionReturn< * * You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has. * See interface `ActionReturn` for more details. - * - * Docs: https://svelte.dev/docs/svelte-action */ export interface Action< Element = HTMLElement, diff --git a/packages/svelte/src/animate/index.js b/packages/svelte/src/animate/index.js index 7c3eb90e55..fbf2ac83e2 100644 --- a/packages/svelte/src/animate/index.js +++ b/packages/svelte/src/animate/index.js @@ -5,7 +5,6 @@ import { cubicOut } from '../easing/index.js'; * 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 * @param {Element} node * @param {{ from: DOMRect; to: DOMRect }} fromTo * @param {FlipParams} params diff --git a/packages/svelte/src/compiler/index.js b/packages/svelte/src/compiler/index.js index 6cb3157295..5eb22bcd0a 100644 --- a/packages/svelte/src/compiler/index.js +++ b/packages/svelte/src/compiler/index.js @@ -15,7 +15,6 @@ export { default as preprocess } from './preprocess/index.js'; /** * `compile` converts your `.svelte` source code into a JavaScript module that exports a component * - * https://svelte.dev/docs/svelte-compiler#svelte-compile * @param {string} source The component source code * @param {CompileOptions} options The compiler options * @returns {CompileResult} @@ -54,7 +53,6 @@ export function compile(source, options) { /** * `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module. * - * https://svelte.dev/docs/svelte-compiler#svelte-compile * @param {string} source The component source code * @param {ModuleCompileOptions} options * @returns {CompileResult} @@ -74,7 +72,6 @@ export function compileModule(source, options) { * 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 * @overload * @param {string} source * @param {{ filename?: string; modern: true }} options @@ -87,7 +84,6 @@ export function compileModule(source, options) { * 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 * @overload * @param {string} source * @param {{ filename?: string; modern?: false }} [options] @@ -100,7 +96,6 @@ export function compileModule(source, options) { * 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 * @param {string} source * @param {{ filename?: string; rootDir?: string; modern?: boolean }} [options] * @returns {AST.Root | LegacyRoot} diff --git a/packages/svelte/src/compiler/preprocess/index.js b/packages/svelte/src/compiler/preprocess/index.js index f689206a09..f26db16e2b 100644 --- a/packages/svelte/src/compiler/preprocess/index.js +++ b/packages/svelte/src/compiler/preprocess/index.js @@ -330,7 +330,6 @@ async function process_markup(process, source) { * The preprocess function provides convenient hooks for arbitrarily transforming component source code. * For example, it can be used to convert a