Skip to content

Commit 7a24eed

Browse files
authored
add right sidebar collapse + back to top option (#40)
* mvp * add back to top
1 parent 5fd0dc1 commit 7a24eed

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

astro.config.mjs

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

810
import markdoc from '@astrojs/markdoc';
911

@@ -94,6 +96,12 @@ export default defineConfig({
9496
alt: 'LocalStack',
9597
},
9698
plugins: [
99+
starlightTocOverviewCustomizer({
100+
overviewTitle: "Back to top",
101+
}),
102+
starlightFullViewMode({
103+
leftSidebarEnabled: false,
104+
}),
97105
starlightLinksValidator({
98106
errorOnRelativeLinks: false,
99107
errorOnLocalLinks: false,

package-lock.json

Lines changed: 40 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"react": "^19.1.0",
3030
"react-dom": "^19.1.0",
3131
"sharp": "^0.32.5",
32+
"starlight-fullview-mode": "^0.2.3",
3233
"starlight-links-validator": "^0.17.0",
34+
"starlight-toc-overview-customizer": "^0.1.0",
3335
"tailwind-merge": "^3.2.0",
3436
"tailwindcss": "^4.1.6"
3537
},

0 commit comments

Comments
 (0)