Skip to content

Commit

Permalink
docs: remember sidebar scroll state (#307)
Browse files Browse the repository at this point in the history
* build: update astro & starlight

* feat: enable view transitions and add custom sidebar

The new custom sidebar wraps the default sidebar and adds javascript to remember the scroll state
  • Loading branch information
Dafnik authored Mar 28, 2024
1 parent 110dffb commit 78163b3
Show file tree
Hide file tree
Showing 4 changed files with 1,562 additions and 1,071 deletions.
1 change: 1 addition & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default defineConfig({
components: {
PageTitle: './src/components/PageTitle.astro',
MarkdownContent: './src/components/Content.astro',
Sidebar: './src/components/Sidebar.astro',
},
defaultLocale: 'root',
locales,
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.13.0",
"astro": "^3.5.5",
"@astrojs/starlight": "^0.21.2",
"astro": "^4.5.10",
"sharp": "^0.33.1"
}
}
Loading

0 comments on commit 78163b3

Please sign in to comment.