This commit is contained in:
Jesse Winton
2024-08-27 15:06:06 -04:00
parent 9a74791115
commit dc674dd31b
478 changed files with 40014 additions and 41409 deletions

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import { globToTutorial } from "$lib/utils/tutorials.js";
import { setContext } from "svelte";
import { globToTutorial } from '$lib/utils/tutorials.js';
import { setContext } from 'svelte';
export let data;
const tutorials = globToTutorial(data);
setContext("tutorials", tutorials);
export let data;
const tutorials = globToTutorial(data);
setContext('tutorials', tutorials);
</script>
<slot />

View File

@@ -1,11 +1,11 @@
import type { LayoutLoad } from "./$types";
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = ({ url }) => {
const tutorials = import.meta.glob("./**/*.markdoc", {
eager: true,
});
return {
tutorials,
pathname: url.pathname,
};
const tutorials = import.meta.glob('./**/*.markdoc', {
eager: true
});
return {
tutorials,
pathname: url.pathname
};
};

View File

@@ -1,5 +1,5 @@
import { redirect } from "@sveltejs/kit";
import { redirect } from '@sveltejs/kit';
export function load() {
redirect(303, "/docs/tutorials/sveltekit-ssr-auth/step-1");
redirect(303, '/docs/tutorials/sveltekit-ssr-auth/step-1');
}