mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-08 12:57:48 +00:00
Fix build
This commit is contained in:
10
src/routes/docs/tutorials/flutter/+layout.svelte
Normal file
10
src/routes/docs/tutorials/flutter/+layout.svelte
Normal file
@@ -0,0 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { globToTutorial } from '$lib/utils/tutorials.js';
|
||||
import { setContext } from 'svelte';
|
||||
|
||||
export let data;
|
||||
const tutorials = globToTutorial(data);
|
||||
setContext('tutorials', tutorials);
|
||||
</script>
|
||||
|
||||
<slot />
|
||||
11
src/routes/docs/tutorials/flutter/+layout.ts
Normal file
11
src/routes/docs/tutorials/flutter/+layout.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { LayoutLoad } from './$types';
|
||||
|
||||
export const load: LayoutLoad = ({ url }) => {
|
||||
const tutorials = import.meta.glob('./**/*.markdoc', {
|
||||
eager: true
|
||||
});
|
||||
return {
|
||||
tutorials,
|
||||
pathname: url.pathname
|
||||
};
|
||||
};
|
||||
6
src/routes/docs/tutorials/flutter/+page.ts
Normal file
6
src/routes/docs/tutorials/flutter/+page.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load: PageLoad = async () => {
|
||||
throw redirect(303, '/docs/tutorials/flutter/step-1');
|
||||
};
|
||||
15
src/routes/docs/tutorials/flutter/step-1/+page.markdoc
Normal file
15
src/routes/docs/tutorials/flutter/step-1/+page.markdoc
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
layout: tutorial
|
||||
title: Coming soon
|
||||
description: Learn to build an Flutter app with no backend code using an Appwrite backend.
|
||||
step: 1
|
||||
---
|
||||
|
||||
Improve the docs, add this guide.
|
||||
|
||||
We still don't have this guide in place, but we do have some great news.
|
||||
The Appwrite docs, just like Appwrite, is completely open sourced.
|
||||
This means, anyone can help improve them and add new guides and tutorials.
|
||||
|
||||
If you see this page, **we're actively looking for contributions to this page**.
|
||||
Follow our contribution guidelines, open a PR to [our Website repo](https://github.com/appwrite/website), and collaborate with our core team to improve this page.
|
||||
Reference in New Issue
Block a user