Skip to content

docs: create a docs config #12410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions documentation/docs/01-introduction/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docs/02-template-syntax/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docs/03-runes/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docs/04-runtime/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docs/05-misc/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docs/98-reference/index.md

This file was deleted.

69 changes: 69 additions & 0 deletions documentation/docs/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"sidebar": [
{
"text": "Introduction",
"items": [
{ "file": "introduction/overview.md" },
{ "file": "introduction/getting-started.md" },
{ "file": "introduction/reactivity-fundamentals.md" }
]
},
{
"text": "Template syntax",
"items": [
{ "file": "template-syntax/component-fundamentals.md" },
{ "file": "template-syntax/basic-markup.md" },
{ "file": "template-syntax/control-flow.md" },
{ "file": "template-syntax/snippets.md" },
{ "file": "template-syntax/styles-and-classes.md" },
{ "file": "template-syntax/transitions-and-animations.md" },
{ "file": "template-syntax/actions.md" },
{ "file": "template-syntax/bindings.md" },
{ "file": "template-syntax/special-elements.md" },
{ "file": "template-syntax/data-fetching.md" }
]
},
{
"text": "Runes",
"items": [{ "file": "runes/state.md" }, { "file": "runes/side-effects.md" }]
},
{
"text": "Runtime",
"items": [
{ "file": "runtime/stores.md" },
{ "file": "runtime/context.md" },
{ "file": "runtime/lifecycle-hooks.md" },
{ "file": "runtime/imperative-component-api.md" }
]
},
{
"text": "Misc",
"items": [
{ "file": "misc/debugging.md" },
{ "file": "misc/testing.md" },
{ "file": "misc/typescript.md" },
{ "file": "misc/custom-elements.md" },
{ "file": "misc/reactivity-indepth.md" },
{ "file": "misc/svelte-5-migration-guide.md" }
]
},
{
"text": "Reference",
"items": [
{ "file": "reference/state.md" },
{ "file": "reference/svelte.md" },
{ "file": "reference/svelte-action.md" },
{ "file": "reference/svelte-animate.md" },
{ "file": "reference/svelte-compiler.md" },
{ "file": "reference/svelte-easing.md" },
{ "file": "reference/svelte-events.md" },
{ "file": "reference/svelte-legacy.md" },
{ "file": "reference/svelte-motion.md" },
{ "file": "reference/svelte-reactivity.md" },
{ "file": "reference/svelte-server.md" },
{ "file": "reference/svelte-store.md" },
{ "file": "reference/svelte-transition.md" }
]
}
]
}
3 changes: 0 additions & 3 deletions documentation/docs/index.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Using it together with `<svelte:component>` to restrict what kinds of component
interface Props {
// only components that have at most the "prop"
// property required can be passed
component: Component<{ prop: string }>
component: Component<{ prop: string }>;
}

let { component }: Props = $props();
Expand Down
Loading