Skip to content

Commit 8ec471c

Browse files
authored
docs: update URLs for new svelte.dev site (#12857)
1 parent ea7d024 commit 8ec471c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+257
-246
lines changed

.changeset/strange-plums-drop.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@sveltejs/adapter-cloudflare-workers': patch
3+
'@sveltejs/adapter-cloudflare': patch
4+
'@sveltejs/adapter-netlify': patch
5+
'@sveltejs/adapter-static': patch
6+
'@sveltejs/adapter-vercel': patch
7+
'@sveltejs/adapter-auto': patch
8+
'@sveltejs/adapter-node': patch
9+
'@sveltejs/enhanced-img': patch
10+
'svelte-migrate': patch
11+
'@sveltejs/package': patch
12+
'@sveltejs/amp': patch
13+
'@sveltejs/kit': patch
14+
---
15+
16+
docs: update URLs for new svelte.dev site

packages/adapter-auto/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Automatically chooses the SvelteKit adapter for your current environment, if pos
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-auto)
7+
[Docs](https://svelte.dev/docs/kit/adapter-auto)
88

99
## Changelog
1010

packages/adapter-auto/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default () => ({
117117
if (adapter) return adapter.adapt(builder);
118118

119119
builder.log.warn(
120-
'Could not detect a supported production environment. See https://kit.svelte.dev/docs/adapters to learn how to configure your app to run on the platform of your choosing'
120+
'Could not detect a supported production environment. See https://svelte.dev/docs/kit/adapters to learn how to configure your app to run on the platform of your choosing'
121121
);
122122
},
123123
supports: {

packages/adapter-auto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"directory": "packages/adapter-auto"
1818
},
1919
"license": "MIT",
20-
"homepage": "https://kit.svelte.dev",
20+
"homepage": "https://svelte.dev",
2121
"type": "module",
2222
"exports": {
2323
".": {

packages/adapter-cloudflare-workers/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SvelteKit adapter that creates a Cloudflare Workers site using a function for dy
66

77
## Docs
88

9-
[Docs](https://kit.svelte.dev/docs/adapter-cloudflare-workers)
9+
[Docs](https://svelte.dev/docs/kit/adapter-cloudflare-workers)
1010

1111
## Changelog
1212

packages/adapter-cloudflare-workers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "packages/adapter-cloudflare-workers"
1717
},
1818
"license": "MIT",
19-
"homepage": "https://kit.svelte.dev",
19+
"homepage": "https://svelte.dev",
2020
"type": "module",
2121
"exports": {
2222
".": {

packages/adapter-cloudflare/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# adapter-cloudflare
22

3-
[Adapter](https://kit.svelte.dev/docs/building-your-app) for building SvelteKit applications on [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/platform/functions).
3+
[Adapter](https://svelte.dev/docs/kit/building-your-app) for building SvelteKit applications on [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/platform/functions).
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-cloudflare)
7+
[Docs](https://svelte.dev/docs/kit/adapter-cloudflare)
88

99
## Changelog
1010

packages/adapter-cloudflare/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "packages/adapter-cloudflare"
1717
},
1818
"license": "MIT",
19-
"homepage": "https://kit.svelte.dev",
19+
"homepage": "https://svelte.dev",
2020
"type": "module",
2121
"exports": {
2222
".": {

packages/adapter-netlify/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A SvelteKit adapter that creates a Netlify app.
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-netlify)
7+
[Docs](https://svelte.dev/docs/kit/adapter-netlify)
88

99
## Changelog
1010

packages/adapter-netlify/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function get_publish_directory(netlify_config, builder) {
323323
}
324324

325325
builder.log.warn(
326-
'No netlify.toml found. Using default publish directory. Consult https://kit.svelte.dev/docs/adapter-netlify#usage for more details'
326+
'No netlify.toml found. Using default publish directory. Consult https://svelte.dev/docs/kit/adapter-netlify#usage for more details'
327327
);
328328
}
329329

packages/adapter-netlify/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "packages/adapter-netlify"
1717
},
1818
"license": "MIT",
19-
"homepage": "https://kit.svelte.dev",
19+
"homepage": "https://svelte.dev",
2020
"type": "module",
2121
"exports": {
2222
".": {

packages/adapter-node/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# @sveltejs/adapter-node
22

3-
[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that generates a standalone Node server.
3+
[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-node)
7+
[Docs](https://svelte.dev/docs/kit/adapter-node)
88

99
## Changelog
1010

packages/adapter-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "packages/adapter-node"
1717
},
1818
"license": "MIT",
19-
"homepage": "https://kit.svelte.dev",
19+
"homepage": "https://svelte.dev",
2020
"type": "module",
2121
"exports": {
2222
".": {

packages/adapter-static/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# @sveltejs/adapter-static
22

3-
[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://kit.svelte.dev/docs/page-options#prerender).
3+
[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-static)
7+
[Docs](https://svelte.dev/docs/kit/adapter-static)
88

99
## Changelog
1010

packages/adapter-static/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ export default function (options) {
1818
has_param_routes
1919
? '(routes with parameters are not part of entry points by default)'
2020
: ''
21-
} — see https://kit.svelte.dev/docs/configuration#prerender for more info.`
21+
} — see https://svelte.dev/docs/kit/configuration#prerender for more info.`
2222
: '';
2323

2424
builder.log.error(
2525
`@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic:
2626
${dynamic_routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')}
2727
2828
You have the following options:
29-
- set the \`fallback\` option — see https://kit.svelte.dev/docs/single-page-apps#usage for more info.
29+
- set the \`fallback\` option — see https://svelte.dev/docs/kit/single-page-apps#usage for more info.
3030
- add \`export const prerender = true\` to your root \`+layout.js/.ts\` or \`+layout.server.js/.ts\` file. This will try to prerender all pages.
3131
- add \`export const prerender = true\` to any \`+server.js/ts\` files that are not fetched by page \`load\` functions.
3232
${config_option}
3333
- pass \`strict: false\` to \`adapter-static\` to ignore this error. Only do this if you are sure you don't need the routes in question in your final app, as they will be unavailable. See https://github.com/sveltejs/kit/tree/main/packages/adapter-static#strict for more info.
3434
3535
If this doesn't help, you may need to use a different adapter. @sveltejs/adapter-static can only be used for sites that don't need a server for dynamic rendering, and can run on just a static file server.
36-
See https://kit.svelte.dev/docs/page-options#prerender for more details`
36+
See https://svelte.dev/docs/kit/page-options#prerender for more details`
3737
);
3838
throw new Error('Encountered dynamic routes');
3939
}

packages/adapter-static/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"directory": "packages/adapter-static"
1818
},
1919
"license": "MIT",
20-
"homepage": "https://kit.svelte.dev",
20+
"homepage": "https://svelte.dev",
2121
"type": "module",
2222
"exports": {
2323
".": {

packages/adapter-static/test/apps/spa/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm run dev -- --open
2727

2828
## Building
2929

30-
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. Then:
30+
Before creating a production version of your app, install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. Then:
3131

3232
```bash
3333
npm run build

packages/adapter-vercel/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A SvelteKit adapter that creates a Vercel app.
44

55
## Docs
66

7-
[Docs](https://kit.svelte.dev/docs/adapter-vercel)
7+
[Docs](https://svelte.dev/docs/kit/adapter-vercel)
88

99
## Changelog
1010

packages/adapter-vercel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "packages/adapter-vercel"
1717
},
1818
"license": "MIT",
19-
"homepage": "https://kit.svelte.dev",
19+
"homepage": "https://svelte.dev",
2020
"type": "module",
2121
"exports": {
2222
".": {

packages/amp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "packages/amp"
1515
},
1616
"license": "MIT",
17-
"homepage": "https://kit.svelte.dev",
17+
"homepage": "https://svelte.dev",
1818
"type": "module",
1919
"exports": {
2020
".": {

packages/enhanced-img/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Vite plugin which runs a Svelte preprocessor to locate images and then transfo
66

77
## Docs
88

9-
[Docs](https://kit.svelte.dev/docs/images)
9+
[Docs](https://svelte.dev/docs/kit/images)
1010

1111
## Changelog
1212

packages/enhanced-img/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"vite"
1919
],
2020
"license": "MIT",
21-
"homepage": "https://kit.svelte.dev",
21+
"homepage": "https://svelte.dev",
2222
"type": "module",
2323
"scripts": {
2424
"lint": "prettier --check .",

packages/enhanced-img/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './ambient.js';
55

66
type EnhancedImgAttributes = Omit<HTMLImgAttributes, 'src'> & { src: string | Picture };
77

8-
// https://svelte.dev/docs/typescript#enhancing-built-in-dom-types
8+
// https://svelte.dev/docs/svelte/typescript#enhancing-built-in-dom-types
99
declare module 'svelte/elements' {
1010
export interface SvelteHTMLElements {
1111
'enhanced:img': EnhancedImgAttributes;

packages/kit/CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4206,8 +4206,8 @@ Starting from now all releases follow semver and changes will be listed as Major
42064206

42074207
### Patch Changes
42084208

4209-
- Allow endpoints to return a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response), or an object with [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) ([docs](https://kit.svelte.dev/docs/routing#endpoints), [#3384](https://github.com/sveltejs/kit/pull/3384))
4210-
- breaking: Expose standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) object to endpoints and hooks. `method`, `headers`, and `body` now accessed through `request` field ([docs](https://kit.svelte.dev/docs/routing#endpoints), [#3384](https://github.com/sveltejs/kit/pull/3384))
4209+
- Allow endpoints to return a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response), or an object with [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) ([docs](https://svelte.dev/docs/kit/routing#endpoints), [#3384](https://github.com/sveltejs/kit/pull/3384))
4210+
- breaking: Expose standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) object to endpoints and hooks. `method`, `headers`, and `body` now accessed through `request` field ([docs](https://svelte.dev/docs/kit/routing#endpoints), [#3384](https://github.com/sveltejs/kit/pull/3384))
42114211
- breaking: change `app.render` signature to (request: Request) => Promise<Response> ([#3384](https://github.com/sveltejs/kit/pull/3384))
42124212
- breaking: move protocol/host configuration options from Kit to adapter-node ([#3384](https://github.com/sveltejs/kit/pull/3384))
42134213

@@ -4342,7 +4342,7 @@ Starting from now all releases follow semver and changes will be listed as Major
43424342

43434343
### Patch Changes
43444344

4345-
- breaking: Add `disableScrollHandling` function (see https://kit.svelte.dev/docs/modules#$app-navigation) ([#3182](https://github.com/sveltejs/kit/pull/3182))
4345+
- breaking: Add `disableScrollHandling` function (see https://svelte.dev/docs/kit/modules#$app-navigation) ([#3182](https://github.com/sveltejs/kit/pull/3182))
43464346

43474347
## 1.0.0-next.213
43484348

packages/kit/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The fastest way to build Svelte apps
22

3-
This is the [SvelteKit](https://kit.svelte.dev) framework and CLI.
3+
This is the [SvelteKit](https://svelte.dev/docs/kit) framework and CLI.
44

5-
The quickest way to get started is via the [create-svelte](https://github.com/sveltejs/kit/tree/main/packages/create-svelte) package:
5+
The quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:
66

77
```bash
88
npx sv create my-app
@@ -11,7 +11,7 @@ npm install
1111
npm run dev
1212
```
1313

14-
See the [documentation](https://kit.svelte.dev/docs) to learn more.
14+
See the [documentation](https://svelte.dev/docs/kit) to learn more.
1515

1616
## Changelog
1717

packages/kit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"directory": "packages/kit"
1616
},
1717
"license": "MIT",
18-
"homepage": "https://kit.svelte.dev",
18+
"homepage": "https://svelte.dev",
1919
"type": "module",
2020
"dependencies": {
2121
"@types/cookie": "^0.6.0",

packages/kit/src/core/config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function process_config(config, { cwd = process.cwd() } = {}) {
111111
export function validate_config(config) {
112112
if (typeof config !== 'object') {
113113
throw new Error(
114-
'svelte.config.js must have a configuration object as its default export. See https://kit.svelte.dev/docs/configuration'
114+
'svelte.config.js must have a configuration object as its default export. See https://svelte.dev/docs/kit/configuration'
115115
);
116116
}
117117

packages/kit/src/core/config/index.spec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ test('fails if kit.appDir is only slash', () => {
209209
appDir: '/'
210210
}
211211
});
212-
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration$/);
212+
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration$/);
213213
});
214214

215215
test('fails if kit.appDir starts with slash', () => {
@@ -219,7 +219,7 @@ test('fails if kit.appDir starts with slash', () => {
219219
appDir: '/_app'
220220
}
221221
});
222-
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration$/);
222+
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration$/);
223223
});
224224

225225
test('fails if kit.appDir ends with slash', () => {
@@ -229,7 +229,7 @@ test('fails if kit.appDir ends with slash', () => {
229229
appDir: '_app/'
230230
}
231231
});
232-
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration$/);
232+
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration$/);
233233
});
234234

235235
test('fails if paths.base is not root-relative', () => {
@@ -242,7 +242,7 @@ test('fails if paths.base is not root-relative', () => {
242242
}
243243
}
244244
});
245-
}, /^config\.kit\.paths\.base option must either be the empty string or a root-relative path that starts but doesn't end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration#paths$/);
245+
}, /^config\.kit\.paths\.base option must either be the empty string or a root-relative path that starts but doesn't end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration#paths$/);
246246
});
247247

248248
test("fails if paths.base ends with '/'", () => {
@@ -254,7 +254,7 @@ test("fails if paths.base ends with '/'", () => {
254254
}
255255
}
256256
});
257-
}, /^config\.kit\.paths\.base option must either be the empty string or a root-relative path that starts but doesn't end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration#paths$/);
257+
}, /^config\.kit\.paths\.base option must either be the empty string or a root-relative path that starts but doesn't end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration#paths$/);
258258
});
259259

260260
test('fails if paths.assets is relative', () => {
@@ -267,7 +267,7 @@ test('fails if paths.assets is relative', () => {
267267
}
268268
}
269269
});
270-
}, /^config\.kit\.paths\.assets option must be an absolute path, if specified. See https:\/\/kit\.svelte\.dev\/docs\/configuration#paths$/);
270+
}, /^config\.kit\.paths\.assets option must be an absolute path, if specified. See https:\/\/svelte\.dev\/docs\/kit\/configuration#paths$/);
271271
});
272272

273273
test('fails if paths.assets has trailing slash', () => {
@@ -279,7 +279,7 @@ test('fails if paths.assets has trailing slash', () => {
279279
}
280280
}
281281
});
282-
}, /^config\.kit\.paths\.assets option must not end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration#paths$/);
282+
}, /^config\.kit\.paths\.assets option must not end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration#paths$/);
283283
});
284284

285285
test('fails if prerender.entries are invalid', () => {
@@ -373,6 +373,6 @@ test('errors on loading config with incorrect default export', async () => {
373373

374374
assert.equal(
375375
message,
376-
'svelte.config.js must have a configuration object as its default export. See https://kit.svelte.dev/docs/configuration'
376+
'svelte.config.js must have a configuration object as its default export. See https://svelte.dev/docs/kit/configuration'
377377
);
378378
});

0 commit comments

Comments
 (0)