diff --git a/packages/docs/astro.config.mjs b/packages/docs/astro.config.mjs index b778bd45e..6c484e7a8 100644 --- a/packages/docs/astro.config.mjs +++ b/packages/docs/astro.config.mjs @@ -47,6 +47,7 @@ export default defineConfig({ components: { Sidebar: './src/components/Sidebar.astro', Header: './src/components/Header.astro', + Footer: './src/components/Footer.astro', Search: './src/components/Search.astro', Hero: "./src/components/Hero.astro", Head: './src/components/Head.astro', diff --git a/packages/docs/config/head.ts b/packages/docs/config/head.ts index af4119240..013e415d6 100644 --- a/packages/docs/config/head.ts +++ b/packages/docs/config/head.ts @@ -40,6 +40,14 @@ const head = [ content: '#000' } }, + { + tag: 'script', + attrs: { + async: true, + defer: true, + src: 'https://buttons.github.io/buttons.js' + } + } ] export default head diff --git a/packages/docs/src/components/Footer.astro b/packages/docs/src/components/Footer.astro new file mode 100644 index 000000000..a15c4261f --- /dev/null +++ b/packages/docs/src/components/Footer.astro @@ -0,0 +1,52 @@ +--- +import type { Props } from '@astrojs/starlight/props'; + +import EditLink from '@astrojs/starlight/components/EditLink.astro'; +import LastUpdated from '@astrojs/starlight/components/LastUpdated.astro'; +import Pagination from '@astrojs/starlight/components/Pagination.astro'; +--- + + + + \ No newline at end of file diff --git a/packages/docs/src/components/TableOfContents.astro b/packages/docs/src/components/TableOfContents.astro index 0b2cceacd..81fc21dbc 100644 --- a/packages/docs/src/components/TableOfContents.astro +++ b/packages/docs/src/components/TableOfContents.astro @@ -1,6 +1,7 @@ --- import type { Props } from '@astrojs/starlight/props'; import TableOfContentsList from './TableOfContents/TableOfContentsList.astro'; +import { Icon } from '@astrojs/starlight/components'; const { labels, toc } = Astro.props; @@ -14,16 +15,37 @@ const showMiniBanner = Astro.props.slug.startsWith("open-source"); + {showMiniBanner && } ) -} \ No newline at end of file +} + + \ No newline at end of file