-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: adjust the project README and use it as the Homepage of the show…
…case website
- Loading branch information
Showing
6 changed files
with
60 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script lang="ts"> | ||
import type { SvelteComponentTyped } from 'svelte/internal'; | ||
export let data; | ||
type C = $$Generic<typeof SvelteComponentTyped<any, any, any>>; | ||
$: component = data.content as unknown as C; | ||
</script> | ||
|
||
<svelte:component this={component} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const load = async () => { | ||
const readmeComponentImporter = (await import.meta.glob('../../README.md')) as unknown as Record< | ||
string, | ||
App.MdsvexResolver | ||
>; | ||
const postResolver = await readmeComponentImporter['../../README.md'](); | ||
const post = await postResolver.default; | ||
return { content: post }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters