Skip to content

Commit aaecb5c

Browse files
committed
Add AllPackageManagers component, apply defaults
1 parent dbcd278 commit aaecb5c

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
import {
3+
PackageManagers,
4+
type PackageManagersProps,
5+
} from "starlight-package-managers";
6+
7+
type Props = PackageManagersProps;
8+
---
9+
10+
<PackageManagers
11+
pkgManagers={["npm", "yarn", "pnpm", "bun", "ni"]}
12+
frame="none"
13+
{...Astro.props}
14+
/>

src/content/docs/blog/how-to-quickly-setup-a-blog.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111
authors: bugron
1212
---
1313

14-
import { PackageManagers } from 'starlight-package-managers'
14+
import AllPackageManagers from '../../../components/AllPackageManagers.astro'
1515

1616
I've been delaying setting up my personal blog for so long that a few days ago I finally decided to do something about it 😅 And I'm glad I did because I finally got my hands dirty with [Astro][astro] and [Starlight][starlight] for the first time.
1717

@@ -33,13 +33,13 @@ Here is the list of tech I used to create this blog:
3333

3434
It's very easy to start a new Astro project with their CLI:
3535

36-
<PackageManagers pkg="astro@latest" type='create' />
36+
<AllPackageManagers pkg="astro@latest" type='create' />
3737

3838
### Starlight
3939

4040
Instead of vanilla Astro I opted in using [Starlight][starlight] that is an official "wrapper" on top of it for building documentation websites (similar to [Docusaurus][docusaurus] and others). Interestingly, Starlight is just a template for Astro that you can install with the same Astro CLI:
4141

42-
<PackageManagers pkg="astro@latest -- --template starlight" type='create' />
42+
<AllPackageManagers pkg="astro@latest" type='create' args='--template starlight' />
4343

4444
I also found out that [starlight-blog][starlightBlog] package seamlessly adds blogging capabilities. Starlight's stellar (pun intended) features like [i18n][mdni18n], [full-text site search][starlightSiteSearch], visual mode switch, and many more are all supported out of box. That meant less work for me to get the blog going so I was sold right away.
4545

0 commit comments

Comments
 (0)