Skip to content

Commit 3c8a071

Browse files
authored
fix(site): renderer new link format (#8787)
* adapt * Uncomment * Push * Bump site-kit
1 parent c808ebf commit 3c8a071

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

documentation/docs/02-template-syntax/07-special-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ The `<svelte:options>` element provides a place to specify per-component compile
328328

329329
## `<svelte:fragment>`
330330

331-
The `<svelte:fragment>` element allows you to place content in a [named slot](/docs/special-elements#slot-name-name) without wrapping it in a container DOM element. This keeps the flow layout of your document intact.
331+
The `<svelte:fragment>` element allows you to place content in a [named slot](/docs/special-elements#slot-slot-name-name) without wrapping it in a container DOM element. This keeps the flow layout of your document intact.
332332

333333
```svelte
334334
<!-- Widget.svelte -->

documentation/docs/03-runtime/02-svelte-store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: 'svelte/store'
44

55
The `svelte/store` module exports functions for creating [readable](/docs/svelte-store#readable), [writable](/docs/svelte-store#writable) and [derived](/docs/svelte-store#derived) stores.
66

7-
Keep in mind that you don't _have_ to use these functions to enjoy the [reactive `$store` syntax](/docs/svelte-components#4-prefix-stores-with-$-to-access-their-values) in your components. Any object that correctly implements `.subscribe`, unsubscribe, and (optionally) `.set` is a valid store, and will work both with the special syntax, and with Svelte's built-in [`derived` stores](/docs/svelte-store#derived).
7+
Keep in mind that you don't _have_ to use these functions to enjoy the [reactive `$store` syntax](/docs/svelte-components#script-4-prefix-stores-with-$-to-access-their-values) in your components. Any object that correctly implements `.subscribe`, unsubscribe, and (optionally) `.set` is a valid store, and will work both with the special syntax, and with Svelte's built-in [`derived` stores](/docs/svelte-store#derived).
88

9-
This makes it possible to wrap almost any other reactive state handling library for use in Svelte. Read more about the [store contract](/docs/svelte-components#4-prefix-stores-with-$-to-access-their-values) to see what a correct implementation looks like.
9+
This makes it possible to wrap almost any other reactive state handling library for use in Svelte. Read more about the [store contract](/docs/svelte-components#script-4-prefix-stores-with-$-to-access-their-values) to see what a correct implementation looks like.
1010

1111
## `writable`
1212

documentation/docs/04-compiler-and-api/01-svelte-compiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const result = compile(source, {
2929
});
3030
```
3131

32-
Refer to [CompileOptions](#type-compileoptions) for all the available options.
32+
Refer to [CompileOptions](#types-compileoptions) for all the available options.
3333

3434
The returned `result` object contains the code for your component, along with useful bits of metadata.
3535

@@ -47,7 +47,7 @@ import { compile } from 'svelte/compiler';
4747
const { js, css, ast, warnings, vars, stats } = compile(source);
4848
```
4949

50-
Refer to [CompileResult](#type-compileresult) for a full description of the compile result.
50+
Refer to [CompileResult](#types-compileresult) for a full description of the compile result.
5151

5252
## parse
5353

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/svelte.dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@resvg/resvg-js": "^2.4.1",
3131
"@sveltejs/adapter-vercel": "^3.0.1",
3232
"@sveltejs/kit": "^1.20.4",
33-
"@sveltejs/site-kit": "6.0.0-next.11",
33+
"@sveltejs/site-kit": "6.0.0-next.14",
3434
"@sveltejs/vite-plugin-svelte": "^2.4.1",
3535
"@types/marked": "^5.0.0",
3636
"@types/node": "^20.3.1",

sites/svelte.dev/src/lib/server/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const render_content = (filename, body) =>
1414
resolveTypeLinks: (module_name, type_name) => {
1515
return {
1616
page: `/docs/${slugify(module_name)}`,
17-
slug: `type-${slugify(type_name)}`
17+
slug: `types-${slugify(type_name)}`
1818
};
1919
},
2020

sites/svelte.dev/src/routes/docs/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@
145145
146146
// component-format-
147147
[/component-format-(script|style|script-context-module)$/i, 'svelte-components#$1'],
148-
[/component-format-(?:script)(?:-?(.*))$/i, 'svelte-components#$1'],
148+
[/component-format-(script)(?:-?(.*))$/i, 'svelte-components#$1-$2'],
149149
150150
// template-syntax
151151
[/template-syntax-((?:element|component)-directives)-?(.*)/i, '$1#$2'],
152152
[/template-syntax-slot$/i, 'special-elements#slot'],
153-
[/template-syntax-(?:slot)-?(.*)/i, 'special-elements#$1'],
153+
[/template-syntax-(slot)-?(.*)/i, 'special-elements#$1-$2'],
154154
[/template-syntax-(if|each|await|key)$/i, 'logic-blocks#$1'],
155155
[/template-syntax-(const|debug|html)$/i, 'special-tags#$1'],
156156
[/template-syntax-(tags|attributes-and-props|text-expressions|comments)$/i, 'basic-markup#$1'],
@@ -196,7 +196,7 @@
196196
return new_ids;
197197
}
198198
199-
function getURlToRedirectTo() {
199+
function get_url_to_redirect_to() {
200200
const hash = $page.url.hash.replace(/^#/i, '');
201201
202202
if (!hash) return '/docs/introduction';
@@ -211,6 +211,6 @@
211211
212212
onMount(() => {
213213
console.log(get_old_new_ids_map());
214-
goto(getURlToRedirectTo(), { replaceState: true });
214+
goto(get_url_to_redirect_to(), { replaceState: true });
215215
});
216216
</script>

0 commit comments

Comments
 (0)