@@ -5,6 +5,9 @@ import starlightUtils from '@lorenzo_lewis/starlight-utils';
55import starlightDocSearch from '@astrojs/starlight-docsearch' ;
66import starlightLinksValidator from 'starlight-links-validator'
77import starlightImageZoom from 'starlight-image-zoom'
8+ import sitemap from '@astrojs/sitemap' ;
9+ import starlightFullViewMode from 'starlight-fullview-mode'
10+ import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer'
811
912import markdoc from '@astrojs/markdoc' ;
1013
@@ -24,6 +27,7 @@ const latestVersion = data.tag_name.replace('v', '');
2427
2528// https://astro.build/config
2629export default defineConfig ( {
30+ site : 'https://docs.localstack.cloud' ,
2731 env : {
2832 schema : {
2933 LOCALSTACK_VERSION : envField . string ( {
@@ -40,10 +44,20 @@ export default defineConfig({
4044 title : 'Docs' ,
4145 favicon : '/images/favicons/favicon.ico' ,
4246 customCss : [ './src/styles/global.css' ] ,
47+ editLink : {
48+ baseUrl : 'https://github.com/localstack/localstack-docs/edit/master/' ,
49+ } ,
4350 components : {
4451 PageTitle : './src/components/PageTitleWithBadges.astro' ,
4552 } ,
4653 head : [
54+ {
55+ tag : 'link' ,
56+ attrs : {
57+ rel : 'sitemap' ,
58+ href : '/sitemap-index.xml' ,
59+ } ,
60+ } ,
4761 {
4862 tag : 'script' ,
4963 content : `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]); posthog.init('phc_6bea9iRqN9iwiwf5aM3dVXrKmAQGGMahouBRMIyQfnE', { api_host: 'https://us.i.posthog.com', person_profiles: 'always' });` ,
@@ -98,6 +112,12 @@ export default defineConfig({
98112 starlightImageZoom ( {
99113 showCaptions : true ,
100114 } ) ,
115+ starlightTocOverviewCustomizer ( {
116+ overviewTitle : "Back to top" ,
117+ } ) ,
118+ starlightFullViewMode ( {
119+ leftSidebarEnabled : false ,
120+ } ) ,
101121 starlightLinksValidator ( {
102122 errorOnRelativeLinks : false ,
103123 errorOnLocalLinks : false ,
@@ -407,6 +427,7 @@ export default defineConfig({
407427 } ) ,
408428 markdoc ( ) ,
409429 react ( ) ,
430+ sitemap ( ) ,
410431 ] ,
411432
412433 vite : {
0 commit comments