Skip to content

Commit fbd00bc

Browse files
committed
add back to top
1 parent 8067a3f commit fbd00bc

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import starlightUtils from '@lorenzo_lewis/starlight-utils';
55
import starlightDocSearch from '@astrojs/starlight-docsearch';
66
import starlightLinksValidator from 'starlight-links-validator'
77
import starlightFullViewMode from 'starlight-fullview-mode'
8+
import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer'
89

910
import markdoc from '@astrojs/markdoc';
1011

@@ -95,6 +96,9 @@ export default defineConfig({
9596
alt: 'LocalStack',
9697
},
9798
plugins: [
99+
starlightTocOverviewCustomizer({
100+
overviewTitle: "Back to top",
101+
}),
98102
starlightFullViewMode({
99103
leftSidebarEnabled: false,
100104
}),

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"sharp": "^0.32.5",
3232
"starlight-fullview-mode": "^0.2.3",
3333
"starlight-links-validator": "^0.17.0",
34+
"starlight-toc-overview-customizer": "^0.1.0",
3435
"tailwind-merge": "^3.2.0",
3536
"tailwindcss": "^4.1.6"
3637
},

0 commit comments

Comments
 (0)