-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac93be5
commit 8cdaef6
Showing
13 changed files
with
93 additions
and
35 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
--- | ||
title: Recommended Plugins | ||
title: Recommended Resources | ||
--- | ||
|
||
import { LinkCard, CardGrid } from "@astrojs/starlight/components"; | ||
|
||
## Plugins | ||
|
||
These are plugins not included in this utility but are fantastic to add to your Starlight site. | ||
|
||
<CardGrid> | ||
<LinkCard | ||
title="Starlight Links Validator" | ||
description="Starlight plugin to validate internal links." | ||
href="https://starlight-links-validator.vercel.app" | ||
/> | ||
</CardGrid> | ||
|
||
--- | ||
|
||
<LinkCard | ||
title="More Resources" | ||
description="Visit the Starlight Plugins and Integrations page for even more amazing resources!" | ||
href="https://starlight.astro.build/resources/plugins/" | ||
/> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: References | ||
title: API Reference | ||
sidebar: | ||
order: 1 | ||
--- |
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,3 @@ | ||
--- | ||
title: List of Utilities | ||
--- |
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,43 @@ | ||
--- | ||
title: Multi-Sidebar | ||
--- | ||
|
||
There are cases where having multiple sidebars for a Starlight site can be useful. [Starlight does not currently support this natively](https://github.com/withastro/starlight/discussions/959), but this utility gives a minimal implementation of this. | ||
|
||
## Demo | ||
|
||
import { Sidebar } from "@lorenzo_lewis/starlight-utils/components"; | ||
|
||
## Configuration | ||
|
||
See below for how to configure each of these actions. | ||
|
||
```ts {12-14} | ||
// astro.config.mjs | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
import starlightUtils from "@lorenzo_lewis/starlight-utils"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [ | ||
starlight({ | ||
plugins: [ | ||
starlightUtils({ | ||
multiSidebar: { | ||
switcherStyle: "horizontalList", | ||
}, | ||
}), | ||
], | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
## `switcherStyle` | ||
|
||
**Type:** `"dropdown" | "horizontalList"` | ||
|
||
**Default:** `"horizontalList"` | ||
|
||
Specifies which style should be used for the sidebar. |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# 🗄️ Starlight Utils | ||
|
||
A collection of utilities to build on top of your 🌟 [Starlight](https://starlight.astro.build) site. | ||
Utilities to use with your 🌟 [Starlight](https://starlight.astro.build) site. | ||
|
||
Visit the documentation for instructions on how to use: https://starlight-utils.pages.dev |
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,3 @@ | ||
import Sidebar from "../overrides/Sidebar.astro"; | ||
|
||
export { Sidebar }; |
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