diff --git a/documentation/docs/01-introduction/index.md b/documentation/docs/01-introduction/index.md deleted file mode 100644 index 8f14f7a7c90b..000000000000 --- a/documentation/docs/01-introduction/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Introduction ---- diff --git a/documentation/docs/02-template-syntax/index.md b/documentation/docs/02-template-syntax/index.md deleted file mode 100644 index 3c4523cb9275..000000000000 --- a/documentation/docs/02-template-syntax/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Template syntax ---- diff --git a/documentation/docs/03-runes/index.md b/documentation/docs/03-runes/index.md deleted file mode 100644 index 8ade901351fb..000000000000 --- a/documentation/docs/03-runes/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Runes ---- diff --git a/documentation/docs/04-runtime/index.md b/documentation/docs/04-runtime/index.md deleted file mode 100644 index 06240892bdbc..000000000000 --- a/documentation/docs/04-runtime/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Runtime ---- diff --git a/documentation/docs/05-misc/index.md b/documentation/docs/05-misc/index.md deleted file mode 100644 index d8c5963f7f75..000000000000 --- a/documentation/docs/05-misc/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Misc ---- diff --git a/documentation/docs/98-reference/index.md b/documentation/docs/98-reference/index.md deleted file mode 100644 index b98302768eb0..000000000000 --- a/documentation/docs/98-reference/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Reference ---- diff --git a/documentation/docs/config.json b/documentation/docs/config.json new file mode 100644 index 000000000000..3296ba11e82c --- /dev/null +++ b/documentation/docs/config.json @@ -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" } + ] + } + ] +} diff --git a/documentation/docs/index.md b/documentation/docs/index.md deleted file mode 100644 index 6904b1a25254..000000000000 --- a/documentation/docs/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Svelte ---- diff --git a/documentation/docs/01-introduction/02-getting-started.md b/documentation/docs/introduction/getting-started.md similarity index 100% rename from documentation/docs/01-introduction/02-getting-started.md rename to documentation/docs/introduction/getting-started.md diff --git a/documentation/docs/01-introduction/01-overview.md b/documentation/docs/introduction/overview.md similarity index 100% rename from documentation/docs/01-introduction/01-overview.md rename to documentation/docs/introduction/overview.md diff --git a/documentation/docs/01-introduction/03-reactivity-fundamentals.md b/documentation/docs/introduction/reactivity-fundamentals.md similarity index 100% rename from documentation/docs/01-introduction/03-reactivity-fundamentals.md rename to documentation/docs/introduction/reactivity-fundamentals.md diff --git a/documentation/docs/05-misc/04-custom-elements.md b/documentation/docs/misc/custom-elements.md similarity index 100% rename from documentation/docs/05-misc/04-custom-elements.md rename to documentation/docs/misc/custom-elements.md diff --git a/documentation/docs/05-misc/01-debugging.md b/documentation/docs/misc/debugging.md similarity index 100% rename from documentation/docs/05-misc/01-debugging.md rename to documentation/docs/misc/debugging.md diff --git a/documentation/docs/05-misc/05-reactivity-indepth.md b/documentation/docs/misc/reactivity-indepth.md similarity index 100% rename from documentation/docs/05-misc/05-reactivity-indepth.md rename to documentation/docs/misc/reactivity-indepth.md diff --git a/documentation/docs/05-misc/06-svelte-5-migration-guide.md b/documentation/docs/misc/svelte-5-migration-guide.md similarity index 100% rename from documentation/docs/05-misc/06-svelte-5-migration-guide.md rename to documentation/docs/misc/svelte-5-migration-guide.md diff --git a/documentation/docs/05-misc/02-testing.md b/documentation/docs/misc/testing.md similarity index 100% rename from documentation/docs/05-misc/02-testing.md rename to documentation/docs/misc/testing.md diff --git a/documentation/docs/05-misc/03-typescript.md b/documentation/docs/misc/typescript.md similarity index 99% rename from documentation/docs/05-misc/03-typescript.md rename to documentation/docs/misc/typescript.md index 8dd02ce8be52..c6177c6bcb9b 100644 --- a/documentation/docs/05-misc/03-typescript.md +++ b/documentation/docs/misc/typescript.md @@ -170,7 +170,7 @@ Using it together with `` 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(); diff --git a/documentation/docs/98-reference/01-state.md b/documentation/docs/reference/state.md similarity index 100% rename from documentation/docs/98-reference/01-state.md rename to documentation/docs/reference/state.md diff --git a/documentation/docs/98-reference/21-svelte-action.md b/documentation/docs/reference/svelte-action.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-action.md rename to documentation/docs/reference/svelte-action.md diff --git a/documentation/docs/98-reference/21-svelte-animate.md b/documentation/docs/reference/svelte-animate.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-animate.md rename to documentation/docs/reference/svelte-animate.md diff --git a/documentation/docs/98-reference/21-svelte-compiler.md b/documentation/docs/reference/svelte-compiler.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-compiler.md rename to documentation/docs/reference/svelte-compiler.md diff --git a/documentation/docs/98-reference/21-svelte-easing.md b/documentation/docs/reference/svelte-easing.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-easing.md rename to documentation/docs/reference/svelte-easing.md diff --git a/documentation/docs/98-reference/21-svelte-events.md b/documentation/docs/reference/svelte-events.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-events.md rename to documentation/docs/reference/svelte-events.md diff --git a/documentation/docs/98-reference/21-svelte-legacy.md b/documentation/docs/reference/svelte-legacy.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-legacy.md rename to documentation/docs/reference/svelte-legacy.md diff --git a/documentation/docs/98-reference/21-svelte-motion.md b/documentation/docs/reference/svelte-motion.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-motion.md rename to documentation/docs/reference/svelte-motion.md diff --git a/documentation/docs/98-reference/21-svelte-reactivity.md b/documentation/docs/reference/svelte-reactivity.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-reactivity.md rename to documentation/docs/reference/svelte-reactivity.md diff --git a/documentation/docs/98-reference/21-svelte-server.md b/documentation/docs/reference/svelte-server.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-server.md rename to documentation/docs/reference/svelte-server.md diff --git a/documentation/docs/98-reference/21-svelte-store.md b/documentation/docs/reference/svelte-store.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-store.md rename to documentation/docs/reference/svelte-store.md diff --git a/documentation/docs/98-reference/21-svelte-transition.md b/documentation/docs/reference/svelte-transition.md similarity index 100% rename from documentation/docs/98-reference/21-svelte-transition.md rename to documentation/docs/reference/svelte-transition.md diff --git a/documentation/docs/98-reference/20-svelte.md b/documentation/docs/reference/svelte.md similarity index 100% rename from documentation/docs/98-reference/20-svelte.md rename to documentation/docs/reference/svelte.md diff --git a/documentation/docs/03-runes/02-side-effects.md b/documentation/docs/runes/side-effects.md similarity index 100% rename from documentation/docs/03-runes/02-side-effects.md rename to documentation/docs/runes/side-effects.md diff --git a/documentation/docs/03-runes/01-state.md b/documentation/docs/runes/state.md similarity index 100% rename from documentation/docs/03-runes/01-state.md rename to documentation/docs/runes/state.md diff --git a/documentation/docs/04-runtime/02-context.md b/documentation/docs/runtime/context.md similarity index 100% rename from documentation/docs/04-runtime/02-context.md rename to documentation/docs/runtime/context.md diff --git a/documentation/docs/04-runtime/04-imperative-component-api.md b/documentation/docs/runtime/imperative-component-api.md similarity index 100% rename from documentation/docs/04-runtime/04-imperative-component-api.md rename to documentation/docs/runtime/imperative-component-api.md diff --git a/documentation/docs/04-runtime/03-lifecycle-hooks.md b/documentation/docs/runtime/lifecycle-hooks.md similarity index 100% rename from documentation/docs/04-runtime/03-lifecycle-hooks.md rename to documentation/docs/runtime/lifecycle-hooks.md diff --git a/documentation/docs/04-runtime/01-stores.md b/documentation/docs/runtime/stores.md similarity index 100% rename from documentation/docs/04-runtime/01-stores.md rename to documentation/docs/runtime/stores.md diff --git a/documentation/docs/02-template-syntax/07-actions.md b/documentation/docs/template-syntax/actions.md similarity index 100% rename from documentation/docs/02-template-syntax/07-actions.md rename to documentation/docs/template-syntax/actions.md diff --git a/documentation/docs/02-template-syntax/02-basic-markup.md b/documentation/docs/template-syntax/basic-markup.md similarity index 100% rename from documentation/docs/02-template-syntax/02-basic-markup.md rename to documentation/docs/template-syntax/basic-markup.md diff --git a/documentation/docs/02-template-syntax/08-bindings.md b/documentation/docs/template-syntax/bindings.md similarity index 100% rename from documentation/docs/02-template-syntax/08-bindings.md rename to documentation/docs/template-syntax/bindings.md diff --git a/documentation/docs/02-template-syntax/01-component-fundamentals.md b/documentation/docs/template-syntax/component-fundamentals.md similarity index 100% rename from documentation/docs/02-template-syntax/01-component-fundamentals.md rename to documentation/docs/template-syntax/component-fundamentals.md diff --git a/documentation/docs/02-template-syntax/03-control-flow.md b/documentation/docs/template-syntax/control-flow.md similarity index 100% rename from documentation/docs/02-template-syntax/03-control-flow.md rename to documentation/docs/template-syntax/control-flow.md diff --git a/documentation/docs/02-template-syntax/10-data-fetching.md b/documentation/docs/template-syntax/data-fetching.md similarity index 100% rename from documentation/docs/02-template-syntax/10-data-fetching.md rename to documentation/docs/template-syntax/data-fetching.md diff --git a/documentation/docs/02-template-syntax/04-snippets.md b/documentation/docs/template-syntax/snippets.md similarity index 100% rename from documentation/docs/02-template-syntax/04-snippets.md rename to documentation/docs/template-syntax/snippets.md diff --git a/documentation/docs/02-template-syntax/09-special-elements.md b/documentation/docs/template-syntax/special-elements.md similarity index 100% rename from documentation/docs/02-template-syntax/09-special-elements.md rename to documentation/docs/template-syntax/special-elements.md diff --git a/documentation/docs/02-template-syntax/05-styles-and-classes.md b/documentation/docs/template-syntax/styles-and-classes.md similarity index 100% rename from documentation/docs/02-template-syntax/05-styles-and-classes.md rename to documentation/docs/template-syntax/styles-and-classes.md diff --git a/documentation/docs/02-template-syntax/06-transitions-and-animations.md b/documentation/docs/template-syntax/transitions-and-animations.md similarity index 100% rename from documentation/docs/02-template-syntax/06-transitions-and-animations.md rename to documentation/docs/template-syntax/transitions-and-animations.md