Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update URLs for new svelte.dev site #12857

Merged
merged 8 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changeset/strange-plums-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-cloudflare': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-static': patch
'@sveltejs/adapter-vercel': patch
'@sveltejs/adapter-auto': patch
'@sveltejs/adapter-node': patch
'@sveltejs/enhanced-img': patch
'svelte-migrate': patch
'@sveltejs/package': patch
'@sveltejs/amp': patch
'@sveltejs/kit': patch
---

docs: update URLs for new svelte.dev site
2 changes: 1 addition & 1 deletion packages/adapter-auto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Automatically chooses the SvelteKit adapter for your current environment, if pos

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-auto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default () => ({
if (adapter) return adapter.adapt(builder);

builder.log.warn(
'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'
'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'
);
},
supports: {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "packages/adapter-auto"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SvelteKit adapter that creates a Cloudflare Workers site using a function for dy

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/adapter-cloudflare-workers"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-cloudflare/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# adapter-cloudflare

[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).
[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).

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/adapter-cloudflare"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A SvelteKit adapter that creates a Netlify app.

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function get_publish_directory(netlify_config, builder) {
}

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

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/adapter-netlify"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-node/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @sveltejs/adapter-node

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

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/adapter-node"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-static/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @sveltejs/adapter-static

[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).
[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).

## Docs

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

## Changelog

Expand Down
6 changes: 3 additions & 3 deletions packages/adapter-static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ export default function (options) {
has_param_routes
? '(routes with parameters are not part of entry points by default)'
: ''
} — see https://kit.svelte.dev/docs/configuration#prerender for more info.`
} — see https://svelte.dev/docs/kit/configuration#prerender for more info.`
: '';

builder.log.error(
`@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic:
${dynamic_routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')}

You have the following options:
- set the \`fallback\` option — see https://kit.svelte.dev/docs/single-page-apps#usage for more info.
- set the \`fallback\` option — see https://svelte.dev/docs/kit/single-page-apps#usage for more info.
- add \`export const prerender = true\` to your root \`+layout.js/.ts\` or \`+layout.server.js/.ts\` file. This will try to prerender all pages.
- add \`export const prerender = true\` to any \`+server.js/ts\` files that are not fetched by page \`load\` functions.
${config_option}
- 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.

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.
See https://kit.svelte.dev/docs/page-options#prerender for more details`
See https://svelte.dev/docs/kit/page-options#prerender for more details`
);
throw new Error('Encountered dynamic routes');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "packages/adapter-static"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/test/apps/spa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ npm run dev -- --open

## Building

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

```bash
npm run build
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A SvelteKit adapter that creates a Vercel app.

## Docs

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/adapter-vercel"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "packages/amp"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced-img/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A Vite plugin which runs a Svelte preprocessor to locate images and then transfo

## Docs

[Docs](https://kit.svelte.dev/docs/images)
[Docs](https://svelte.dev/docs/kit/images)

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced-img/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"vite"
],
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"scripts": {
"lint": "prettier --check .",
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced-img/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './ambient.js';

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

// https://svelte.dev/docs/typescript#enhancing-built-in-dom-types
// https://svelte.dev/docs/svelte/typescript#enhancing-built-in-dom-types
declare module 'svelte/elements' {
export interface SvelteHTMLElements {
'enhanced:img': EnhancedImgAttributes;
Expand Down
6 changes: 3 additions & 3 deletions packages/kit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4206,8 +4206,8 @@ Starting from now all releases follow semver and changes will be listed as Major

### Patch Changes

- 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))
- 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))
- 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))
- 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))
- breaking: change `app.render` signature to (request: Request) => Promise<Response> ([#3384](https://github.com/sveltejs/kit/pull/3384))
- breaking: move protocol/host configuration options from Kit to adapter-node ([#3384](https://github.com/sveltejs/kit/pull/3384))

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

### Patch Changes

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

## 1.0.0-next.213

Expand Down
6 changes: 3 additions & 3 deletions packages/kit/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# The fastest way to build Svelte apps

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

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

```bash
npx sv create my-app
Expand All @@ -11,7 +11,7 @@ npm install
npm run dev
```

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

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"directory": "packages/kit"
},
"license": "MIT",
"homepage": "https://kit.svelte.dev",
"homepage": "https://svelte.dev",
"type": "module",
"dependencies": {
"@types/cookie": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/core/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function process_config(config, { cwd = process.cwd() } = {}) {
export function validate_config(config) {
if (typeof config !== 'object') {
throw new Error(
'svelte.config.js must have a configuration object as its default export. See https://kit.svelte.dev/docs/configuration'
'svelte.config.js must have a configuration object as its default export. See https://svelte.dev/docs/kit/configuration'
);
}

Expand Down
16 changes: 8 additions & 8 deletions packages/kit/src/core/config/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ test('fails if kit.appDir is only slash', () => {
appDir: '/'
}
});
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/kit\.svelte\.dev\/docs\/configuration$/);
}, /^config\.kit\.appDir cannot start or end with '\/'. See https:\/\/svelte\.dev\/docs\/kit\/configuration$/);
});

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

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

test('fails if paths.base is not root-relative', () => {
Expand All @@ -242,7 +242,7 @@ test('fails if paths.base is not root-relative', () => {
}
}
});
}, /^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$/);
}, /^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$/);
});

test("fails if paths.base ends with '/'", () => {
Expand All @@ -254,7 +254,7 @@ test("fails if paths.base ends with '/'", () => {
}
}
});
}, /^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$/);
}, /^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$/);
});

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

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

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

assert.equal(
message,
'svelte.config.js must have a configuration object as its default export. See https://kit.svelte.dev/docs/configuration'
'svelte.config.js must have a configuration object as its default export. See https://svelte.dev/docs/kit/configuration'
);
});
Loading
Loading