Skip to content

Commit dbcd278

Browse files
committed
Add starlight package managers plugin
1 parent 84c7711 commit dbcd278

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"starlight-blog": "^0.12.0",
2929
"starlight-image-zoom": "^0.8.0",
3030
"starlight-links-validator": "^0.11.0",
31+
"starlight-package-managers": "^0.6.0",
3132
"tailwindcss": "^3.4.10",
3233
"typescript": "^5.5.4"
3334
},

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

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

14+
import { PackageManagers } from 'starlight-package-managers'
15+
1416
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.
1517

1618
If you're interested in following my journey I invite you to read this article.
@@ -31,17 +33,13 @@ Here is the list of tech I used to create this blog:
3133

3234
It's very easy to start a new Astro project with their CLI:
3335

34-
```bash
35-
npm create astro@latest
36-
```
36+
<PackageManagers 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-
```bash
43-
npm create astro@latest -- --template starlight
44-
```
42+
<PackageManagers pkg="astro@latest -- --template starlight" type='create' />
4543

4644
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.
4745

0 commit comments

Comments
 (0)