-
-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Autogenerate sidebar labels (#1874)
Co-authored-by: Chris Swithinbank <[email protected]>
- Loading branch information
1 parent
48ce125
commit eeba06e
Showing
17 changed files
with
742 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
'@astrojs/starlight': patch | ||
--- | ||
|
||
Adds a new syntax for specifying sidebar link items for internal links | ||
|
||
You can now specify an internal page using only its slug, either as a string, or as an object with a `slug` property: | ||
|
||
```js | ||
starlight({ | ||
title: 'Docs with easier sidebars', | ||
sidebar: [ | ||
'getting-started', | ||
{ slug: 'guides/installation' }, | ||
], | ||
}) | ||
``` | ||
|
||
Starlight will use the linked page’s frontmatter to configure the sidebar link. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.