diff --git a/apps/svelte.dev/src/routes/nav.json/+server.ts b/apps/svelte.dev/src/routes/nav.json/+server.ts index e71856e111..86328aaa0e 100644 --- a/apps/svelte.dev/src/routes/nav.json/+server.ts +++ b/apps/svelte.dev/src/routes/nav.json/+server.ts @@ -11,6 +11,7 @@ export const GET = async () => { async function get_nav_list(): Promise { const docs = index.docs.children.map((topic) => ({ title: topic.metadata.title, + path: '/' + topic.slug, // this will make the UI show a flyout menu for the docs nav entry sections: topic.children.map((section) => ({ title: section.metadata.title, sections: section.children.map((page) => ({ diff --git a/apps/svelte.dev/src/routes/tutorial/[slug]/Menu.svelte b/apps/svelte.dev/src/routes/tutorial/[slug]/Menu.svelte index 25afe011ea..0662c0f591 100644 --- a/apps/svelte.dev/src/routes/tutorial/[slug]/Menu.svelte +++ b/apps/svelte.dev/src/routes/tutorial/[slug]/Menu.svelte @@ -3,7 +3,7 @@ import { click_outside, focus_outside } from '@sveltejs/site-kit/actions'; import { Icon } from '@sveltejs/site-kit/components'; import { open_nav } from '@sveltejs/site-kit/nav'; - import { mql, reduced_motion, theme } from '@sveltejs/site-kit/stores'; + import { mql, reduced_motion } from '@sveltejs/site-kit/stores'; import { expoOut } from 'svelte/easing'; import { slide } from 'svelte/transition'; @@ -27,7 +27,6 @@
(is_open = false)} use:click_outside={() => (is_open = false)} > @@ -155,8 +154,6 @@ diff --git a/packages/site-kit/src/lib/components/index.ts b/packages/site-kit/src/lib/components/index.ts index 02f0f45543..50b1eed77a 100644 --- a/packages/site-kit/src/lib/components/index.ts +++ b/packages/site-kit/src/lib/components/index.ts @@ -4,3 +4,4 @@ export { default as Icons } from './Icons.svelte'; export { default as Section } from './Section.svelte'; export { default as Shell } from './Shell.svelte'; export { default as ThemeToggle } from './ThemeToggle.svelte'; +export { default as LinksDropdown } from './LinksDropdown.svelte'; diff --git a/packages/site-kit/src/lib/docs/DocsOnThisPage.svelte b/packages/site-kit/src/lib/docs/DocsOnThisPage.svelte index 6a6784e703..eb589fed9f 100644 --- a/packages/site-kit/src/lib/docs/DocsOnThisPage.svelte +++ b/packages/site-kit/src/lib/docs/DocsOnThisPage.svelte @@ -4,7 +4,7 @@ import { page } from '$app/stores'; import { click_outside, focus_outside, root_scroll } from '../actions'; import Icon from '../components/Icon.svelte'; - import { mql, nav_open, on_this_page_open, overlay_open, reduced_motion, theme } from '../stores'; + import { mql, nav_open, on_this_page_open, overlay_open, reduced_motion } from '../stores'; import { createEventDispatcher, onMount, tick } from 'svelte'; import { expoOut } from 'svelte/easing'; import { readable } from 'svelte/store'; @@ -175,7 +175,6 @@