@@ -7,7 +7,6 @@ import starlightLinksValidator from 'starlight-links-validator';
77import starlightImageZoom from 'starlight-image-zoom' ;
88import sitemap from '@astrojs/sitemap' ;
99import starlightFullViewMode from 'starlight-fullview-mode' ;
10- import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer' ;
1110
1211import 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) ;
2524const data = await response . json ( ) ;
2625const 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