diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 1cddfcecf2e..7331077be74 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -34,6 +34,8 @@ export default defineConfig({ trailingSlash: 'always', integrations: [ starlight({ + // TODO(HiDeoo) Remove + components: { Sidebar: './src/components/Sidebar.astro' }, title: 'Starlight', logo: { light: '/src/assets/logo-light.svg', diff --git a/docs/src/components/Sidebar.astro b/docs/src/components/Sidebar.astro new file mode 100644 index 00000000000..e2dd2a051d8 --- /dev/null +++ b/docs/src/components/Sidebar.astro @@ -0,0 +1,45 @@ +--- +// TODO(HiDeoo) Remove this entire file +import type { Props } from '@astrojs/starlight/props'; +import Default from '@astrojs/starlight/components/Sidebar.astro'; +--- + + + +
+
+

Sponsored by

+ + +
+
+ + diff --git a/packages/starlight/components/Page.astro b/packages/starlight/components/Page.astro index 0ab90d1bacb..282cce0a9b3 100644 --- a/packages/starlight/components/Page.astro +++ b/packages/starlight/components/Page.astro @@ -79,7 +79,21 @@ const pagefindEnabled =
- {Astro.props.hasSidebar && } + { + Astro.props.hasSidebar && ( + + + + + ) + } diff --git a/packages/starlight/components/SidebarPersister.astro b/packages/starlight/components/SidebarPersister.astro index ae485c97b9f..1878bd6793c 100644 --- a/packages/starlight/components/SidebarPersister.astro +++ b/packages/starlight/components/SidebarPersister.astro @@ -54,15 +54,6 @@ declare global { - -