Skip to content

Commit b27199f

Browse files
authored
Add a persistent announcement across AWS docs (#393)
1 parent e16986e commit b27199f

File tree

6 files changed

+208
-260
lines changed

6 files changed

+208
-260
lines changed

astro.config.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import starlightLinksValidator from 'starlight-links-validator';
77
import starlightImageZoom from 'starlight-image-zoom';
88
import sitemap from '@astrojs/sitemap';
99
import starlightFullViewMode from 'starlight-fullview-mode';
10-
import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer';
1110

1211
import markdoc from '@astrojs/markdoc';
1312

@@ -20,7 +19,7 @@ const response = await fetch(
2019
'https://api.github.com/repos/localstack/localstack/releases/latest',
2120
{
2221
headers: { Accept: 'application/vnd.github+json' },
23-
}
22+
},
2423
);
2524
const data = await response.json();
2625
const latestVersion = data.tag_name.replace('v', '');
@@ -43,6 +42,7 @@ export default defineConfig({
4342
starlight({
4443
title: 'Docs',
4544
favicon: '/images/favicons/favicon.ico',
45+
routeMiddleware: './src/routeData.ts',
4646
customCss: [
4747
'./src/fonts/font-face.css',
4848
'./src/styles/global.css',
@@ -54,6 +54,7 @@ export default defineConfig({
5454
components: {
5555
PageSidebar: './src/components/PageSidebarWithBadges.astro',
5656
LanguageSelect: './src/components/LanguageSelectWithGetStarted.astro',
57+
Banner: './src/components/BannerWithPersistentAnnouncement.astro',
5758
},
5859
expressiveCode: {
5960
themes: ['one-light', 'one-dark-pro'],
@@ -189,9 +190,6 @@ export default defineConfig({
189190
starlightImageZoom({
190191
showCaptions: true,
191192
}),
192-
starlightTocOverviewCustomizer({
193-
overviewTitle: 'Back to top',
194-
}),
195193
starlightFullViewMode({
196194
leftSidebarEnabled: false,
197195
}),

0 commit comments

Comments
 (0)