Skip to content

Commit 88ee1ef

Browse files
authored
fix: update SvelteKit documentation URLs to new svelte.dev domain (#3387)
1 parent d516022 commit 88ee1ef

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

src/content/docs/es/start/frontend/sveltekit.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ tableOfContents:
99
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en https://kit.svelte.dev/. Esta guía es válida para SvelteKit 2.5.7 y Svelte 4.2.15.
12+
SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en https://svelte.dev/. Esta guía es válida para SvelteKit 2.5.7 y Svelte 4.2.15.
1313

1414
## Checklist
1515

16-
- Usa [SSG](https://kit.svelte.dev/docs/adapter-static) y/o [SPA](https://kit.svelte.dev/docs/single-page-apps) a través de `static-adapter`. Tauri no soporta oficialmente soluciones basadas en el servidor.
16+
- Usa [SSG](https://svelte.dev/docs/kit/adapter-static) y/o [SPA](https://svelte.dev/docs/kit/single-page-apps) a través de `static-adapter`. Tauri no soporta oficialmente soluciones basadas en el servidor.
1717
- Usa `build/` en lugar de `frontendDist` en `tauri.conf.json`.
1818

1919
## Ejemplo de Configuración
@@ -108,7 +108,7 @@ SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en http
108108

109109
/** @type {import('@sveltejs/kit').Config} */
110110
const config = {
111-
// Consulta https://kit.svelte.dev/docs/integrations#preprocessors
111+
// Consulta https://svelte.dev/docs/kit/integrations#preprocessors
112112
// para más información sobre preprocesadores
113113
preprocess: vitePreprocess(),
114114

@@ -130,8 +130,8 @@ SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en http
130130
export const ssr = false;
131131
```
132132

133-
Ten en cuenta que `static-adapter` no requiere desactivar el SSR para toda la aplicación, pero permite usar APIs que dependen del objeto global window (como la API de Tauri) sin necesidad de realizar [comprobaciones del lado del cliente](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
133+
Ten en cuenta que `static-adapter` no requiere desactivar el SSR para toda la aplicación, pero permite usar APIs que dependen del objeto global window (como la API de Tauri) sin necesidad de realizar [comprobaciones del lado del cliente](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
134134

135-
Además, si prefieres el modo de Aplicación de Página Única (SPA) en lugar de SSG, puedes cambiar las configuraciones del adaptador y el archivo `+layout.ts` según la [documentación del adaptador](https://kit.svelte.dev/docs/single-page-apps).
135+
Además, si prefieres el modo de Aplicación de Página Única (SPA) en lugar de SSG, puedes cambiar las configuraciones del adaptador y el archivo `+layout.ts` según la [documentación del adaptador](https://svelte.dev/docs/kit/single-page-apps).
136136

137137
</Steps>

src/content/docs/ja/start/frontend/sveltekit.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ tableOfContents:
99
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメタ・フレームワークです。SvelteKit の詳細は「公式サイト https://kit.svelte.dev/」をご覧ください。以下の説明内容は「SvelteKit 2.5.7 / Svelte 4.2.15」に準拠しています。
12+
SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメタ・フレームワークです。SvelteKit の詳細は「公式サイト https://svelte.dev/」をご覧ください。以下の説明内容は「SvelteKit 2.5.7 / Svelte 4.2.15」に準拠しています。
1313

1414
## チェック項目
1515

16-
- `static-adapter` 経由で [SSG](https://kit.svelte.dev/docs/adapter-static) および/または [SPA](https://kit.svelte.dev/docs/single-page-apps) を使用してください。Tauri はサーバー・ベースの方式には対応していません。
16+
- `static-adapter` 経由で [SSG](https://svelte.dev/docs/kit/adapter-static) および/または [SPA](https://svelte.dev/docs/kit/single-page-apps) を使用してください。Tauri はサーバー・ベースの方式には対応していません。
1717
- `tauri.conf.json` では `frontendDist` として `dist/` を指定します。
1818

1919
## 設定例
@@ -108,7 +108,7 @@ SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメ
108108
/** @type {import('@sveltejs/kit').Config} */
109109
const config = {
110110
// 前処理系の詳細については、公式サイト
111-
// https://kit.svelte.dev/docs/integrations#preprocessors を参照してください
111+
// https://svelte.dev/docs/kit/integrations#preprocessors を参照してください
112112
preprocess: vitePreprocess(),
113113

114114
kit: {
@@ -129,9 +129,9 @@ SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメ
129129
export const ssr = false;
130130
```
131131

132-
`static-adapter` は、アプリ全体に対して「SSR を無効化」することを求めているわけではありませんが、そうすることで、(Tauri の API のような)グローバル・ウィンドウ・オブジェクトに依存する API を [クライアント側のチェック](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window) なしで使用できるようになります。《リンク先は、Svelte 公式サイトの FQA ページ(英語版)です》
132+
`static-adapter` は、アプリ全体に対して「SSR を無効化」することを求めているわけではありませんが、そうすることで、(Tauri の API のような)グローバル・ウィンドウ・オブジェクトに依存する API を [クライアント側のチェック](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window) なしで使用できるようになります。《リンク先は、Svelte 公式サイトの FQA ページ(英語版)です》
133133

134-
さらにいえば、「SSG」(静的サイト生成)よりも「シングルページ・アプリケーション (SPA)」モードを好む場合は、[アダプタ関連ドキュメント](https://kit.svelte.dev/docs/single-page-apps) 《英語版ページ》に従ってアダプタ設定と `+layout.ts` を変更できます。
134+
さらにいえば、「SSG」(静的サイト生成)よりも「シングルページ・アプリケーション (SPA)」モードを好む場合は、[アダプタ関連ドキュメント](https://svelte.dev/docs/kit/single-page-apps) 《英語版ページ》に従ってアダプタ設定と `+layout.ts` を変更できます。
135135

136136
</Steps>
137137

src/content/docs/start/frontend/sveltekit.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ tableOfContents:
99
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://kit.svelte.dev/. This guide is accurate as of SvelteKit 2.20.4 / Svelte 5.25.8.
12+
SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://svelte.dev/. This guide is accurate as of SvelteKit 2.20.4 / Svelte 5.25.8.
1313

1414
## Checklist
1515

16-
- Use [SSG](https://kit.svelte.dev/docs/adapter-static) and [SPA](https://svelte.dev/docs/kit/single-page-apps) via `static-adapter`. Tauri doesn't support server-based solutions.
16+
- Use [SSG](https://svelte.dev/docs/kit/adapter-static) and [SPA](https://svelte.dev/docs/kit/single-page-apps) via `static-adapter`. Tauri doesn't support server-based solutions.
1717
- If using SSG **with prerendering**, be aware that `load` functions will not have access to tauri APIs during the build process of your app. Using SPA mode (without prerendering) is recommended since the load functions will only run in the webview with access to tauri APIs.
1818
- Use `build/` as `frontendDist` in `tauri.conf.json`.
1919

@@ -108,7 +108,7 @@ SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://
108108

109109
/** @type {import('@sveltejs/kit').Config} */
110110
const config = {
111-
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
111+
// Consult https://svelte.dev/docs/kit/integrations#preprocessors
112112
// for more information about preprocessors
113113
preprocess: vitePreprocess(),
114114

@@ -131,7 +131,7 @@ SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://
131131
export const ssr = false;
132132
```
133133

134-
Note that `static-adapter` doesn't require you to disable SSR for the whole app but it makes it possible to use APIs that depend on the global window object (like Tauri's API) without [Client-side checks](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
134+
Note that `static-adapter` doesn't require you to disable SSR for the whole app but it makes it possible to use APIs that depend on the global window object (like Tauri's API) without [Client-side checks](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
135135

136136
Furthermore, if you prefer Static Site Generation (SSG) over Single-Page Application (SPA) mode, you can change the adapter configurations and `+layout.ts` according to the [adapter docs](https://svelte.dev/docs/kit/adapter-static).
137137

src/content/docs/zh-cn/start/frontend/sveltekit.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ tableOfContents:
99
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
SvelteKit 是一个用于 Svelte 的元框架。了解更多关于 SvelteKit 的信息,请访问 https://kit.svelte.dev/ 。本指南适用于 SvelteKit 2.5.7 / Svelte 4.2.15 版本。
12+
SvelteKit 是一个用于 Svelte 的元框架。了解更多关于 SvelteKit 的信息,请访问 https://svelte.dev/ 。本指南适用于 SvelteKit 2.5.7 / Svelte 4.2.15 版本。
1313

1414
## 清单
1515

16-
- Tauri 不支持基于服务器的解决方案。请通过 `static-adapter` 使用 [SSG](https://kit.svelte.dev/docs/adapter-static) 或者 [SPA](https://kit.svelte.dev/docs/single-page-apps) via `static-adapter`
16+
- Tauri 不支持基于服务器的解决方案。请通过 `static-adapter` 使用 [SSG](https://svelte.dev/docs/kit/adapter-static) 或者 [SPA](https://svelte.dev/docs/kit/single-page-apps) via `static-adapter`
1717
-`tauri.conf.json` 中将 `frontendDist` 设置为 `build/`
1818

1919
## 示例配置
@@ -104,7 +104,7 @@ SvelteKit 是一个用于 Svelte 的元框架。了解更多关于 SvelteKit 的
104104

105105
/** @type {import('@sveltejs/kit').Config} */
106106
const config = {
107-
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
107+
// Consult https://svelte.dev/docs/kit/integrations#preprocessors
108108
// for more information about preprocessors
109109
preprocess: vitePreprocess(),
110110

@@ -126,8 +126,8 @@ SvelteKit 是一个用于 Svelte 的元框架。了解更多关于 SvelteKit 的
126126
export const ssr = false;
127127
```
128128

129-
请注意,`static-adapter` 不需要您禁用整个应用程序的 SSR,但它使得使用依赖于全局 window 对象的 API(例如 Tauri 的 API)成为可能,而无需进行[客户端检查](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window)
129+
请注意,`static-adapter` 不需要您禁用整个应用程序的 SSR,但它使得使用依赖于全局 window 对象的 API(例如 Tauri 的 API)成为可能,而无需进行[客户端检查](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window)
130130

131-
此外,如果您更喜欢单页面应用(SPA)模式而不是 SSG,您可以根据[适配器文档](https://kit.svelte.dev/docs/single-page-apps)更改适配器配置和 `+layout.ts`
131+
此外,如果您更喜欢单页面应用(SPA)模式而不是 SSG,您可以根据[适配器文档](https://svelte.dev/docs/kit/single-page-apps)更改适配器配置和 `+layout.ts`
132132

133133
</Steps>

0 commit comments

Comments
 (0)