Skip to content

Commit

Permalink
Install guide: Throw whole plugin config in one line (#2)
Browse files Browse the repository at this point in the history
* Update install.mdx

* Format with prettier

---------

Co-authored-by: Reuben Tier <[email protected]>
  • Loading branch information
trueberryless and TheOtterlord authored Jan 19, 2025
1 parent 95b6977 commit 0ef19f6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions apps/docs/src/content/docs/guides/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@ title: Install Theme
description: Install the template theme for Starlight.
---

import { Steps } from '@astrojs/starlight/components';
import { PackageManagers } from 'starlight-package-managers'
import { Steps } from "@astrojs/starlight/components";
import { PackageManagers } from "starlight-package-managers";

<Steps>

1. Install the theme package to your project with your preferred package manager:
<PackageManagers pkg="starlight-theme-template"/>

<PackageManagers pkg="starlight-theme-template" />

2. Add the theme to your Starlight config.
```ts title="astro.config.mjs" ins={1,9}

```ts title="astro.config.mjs" ins={1,8}
import theme from "starlight-theme-template";

export default defineConfig({
// ...
integrations: [
starlight({
// ...
plugins: [
theme()
]
})
]
})
// ...
integrations: [
starlight({
// ...
plugins: [theme()],
}),
],
});
```

</Steps>

0 comments on commit 0ef19f6

Please sign in to comment.