Skip to content

Commit fc61a81

Browse files
Sync kit docs (sveltejs#984)
sync kit docs Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
1 parent e9565fe commit fc61a81

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Diff for: apps/svelte.dev/content/docs/kit/20-core-concepts/10-routing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ To create a layout that applies to every page, make a file called `src/routes/+l
170170
...but we can add whatever markup, styles and behaviour we want. The only requirement is that the component includes a `@render` tag for the page content. For example, let's add a nav bar:
171171

172172
```svelte
173-
<!---- file: src/routes/+layout.svelte --->
173+
<!--- file: src/routes/+layout.svelte --->
174174
<script>
175175
let { children } = $props();
176176
</script>

Diff for: apps/svelte.dev/content/docs/kit/40-best-practices/03-auth.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ Auth [cookies](@sveltejs-kit#Cookies) can be checked inside [server hooks](hooks
1919

2020
## Guides
2121

22-
[Lucia](https://lucia-next.pages.dev/) is a reference for session-based web app auth. It contains example code snippets and projects for implementing session-based auth within SvelteKit and other JS projects. You can add code which follows the Lucia guide to your project with `npx sv create` when creating a new project or `npx sv add lucia` for an existing project.
22+
[Lucia](https://lucia-auth.com/) is a reference for session-based web app auth. It contains example code snippets and projects for implementing session-based auth within SvelteKit and other JS projects. You can add code which follows the Lucia guide to your project with `npx sv create` when creating a new project or `npx sv add lucia` for an existing project.
2323

24-
An auth system is tightly coupled to a web framework because most of the code lies in validating user input, handling errors, and directing users to the appropriate next page. As a result, many of the generic JS auth libraries include one or more web frameworks within them. For this reason, many users will find it preferrable to follow a SvelteKit-specific guide such as the examples found in [Lucia](https://lucia-next.pages.dev/) rather than having multiple web frameworks inside their project.
24+
An auth system is tightly coupled to a web framework because most of the code lies in validating user input, handling errors, and directing users to the appropriate next page. As a result, many of the generic JS auth libraries include one or more web frameworks within them. For this reason, many users will find it preferrable to follow a SvelteKit-specific guide such as the examples found in [Lucia](https://lucia-auth.com/) rather than having multiple web frameworks inside their project.

Diff for: apps/svelte.dev/content/docs/kit/98-reference/10-@sveltejs-kit.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ Checks whether this is an action failure thrown by `fail`.
133133
<div class="ts-block">
134134

135135
```dts
136-
function isActionFailure(
137-
e: unknown
138-
): e is ActionFailure<undefined>;
136+
function isActionFailure(e: unknown): e is ActionFailure;
139137
```
140138

141139
</div>

0 commit comments

Comments
 (0)