Skip to content

Commit

Permalink
Add reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtterlord committed Sep 11, 2023
1 parent ed9791d commit 0878164
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/src/content/docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,23 @@ starlight({
});
```

### `components`

**type:** `Record<string, string>`

Define custom components overrides for internal Starlight components.

Use the path of the component relative to [Starlight's component folder](https://github.com/withastro/starlight/tree/main/packages/starlight/components) as the key, and the path from your project root to your custom component as the value.

```js
starlight({
components: {
Badge: './src/components/Badge.astro',
'TableOfContents/MobileTableOfContents.astro': './src/components/MobileTOC.astro'
}
})
```

### `head`

**type:** [`HeadConfig[]`](#headconfig)
Expand Down

0 comments on commit 0878164

Please sign in to comment.