Skip to content

Commit d337535

Browse files
committed
feat: update to latest starlight and tailwind v4
1 parent b7bd914 commit d337535

File tree

6 files changed

+2208
-2436
lines changed

6 files changed

+2208
-2436
lines changed

astro.config.mjs

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import starlight from "@astrojs/starlight";
33
import starlightDocSearch from "@astrojs/starlight-docsearch";
44
import starlightLinksValidator from "starlight-links-validator";
55
import starlightImageZoom from "starlight-image-zoom";
6-
import tailwind from "@astrojs/tailwind";
76
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
87

8+
import tailwindcss from "@tailwindcss/vite";
9+
910
const locales = {
1011
root: {
1112
label: "English",
@@ -18,6 +19,7 @@ export default defineConfig({
1819
site: "https://docs.astronvim.com",
1920
defaultLocale: "root",
2021
locales,
22+
2123
integrations: [
2224
starlight({
2325
title: "AstroNvim Documentation",
@@ -137,13 +139,33 @@ export default defineConfig({
137139
// Path to your Tailwind base styles:
138140
"./src/tailwind.css",
139141
],
140-
social: {
141-
mastodon: "https://hachyderm.io/@AstroNvim",
142-
"x.com": "https://x.com/AstroNvim",
143-
discord: "https://discord.astronvim.com",
144-
reddit: "https://www.reddit.com/r/AstroNvim",
145-
github: "https://git.astronvim.com/AstroNvim",
146-
},
142+
social: [
143+
{
144+
icon: "mastodon",
145+
label: "Mastodon",
146+
href: "https://hachyderm.io/@AstroNvim",
147+
},
148+
{
149+
icon: "x.com",
150+
label: "X",
151+
href: "https://x.com/AstroNvim",
152+
},
153+
{
154+
icon: "discord",
155+
label: "Discord",
156+
href: "https://discord.astronvim.com",
157+
},
158+
{
159+
icon: "reddit",
160+
label: "Reddit",
161+
href: "https://www.reddit.com/r/AstroNvim",
162+
},
163+
{
164+
icon: "github",
165+
label: "GitHub",
166+
href: "https://git.astronvim.com/AstroNvim",
167+
},
168+
],
147169
sidebar: [
148170
{
149171
label: "🚀 Getting Started",
@@ -205,9 +227,10 @@ export default defineConfig({
205227
baseUrl: "https://github.com/AstroNvim/docs/edit/main/",
206228
},
207229
}),
208-
tailwind({
209-
// Disable the default base styles:
210-
applyBaseStyles: false,
211-
}),
212230
],
231+
232+
vite: {
233+
plugins: [tailwindcss()],
234+
},
213235
});
236+

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@
1111
"upgrade": "pnpm dlx @astrojs/upgrade"
1212
},
1313
"dependencies": {
14-
"@astrojs/mdx": "^4.1.1",
15-
"@astrojs/starlight": "^0.32.2",
14+
"@astrojs/mdx": "^4.2.4",
15+
"@astrojs/starlight": "^0.34.0",
1616
"@astrojs/starlight-docsearch": "^0.6.0",
17-
"@astrojs/starlight-tailwind": "^3.0.0",
18-
"@astrojs/tailwind": "^6.0.0",
19-
"@expressive-code/plugin-collapsible-sections": "^0.35.3",
20-
"@fontsource-variable/inter": "^5.1.1",
21-
"@fontsource-variable/jetbrains-mono": "^5.1.2",
22-
"astro": "^5.4.3",
23-
"sharp": "^0.33.4",
24-
"starlight-image-zoom": "^0.1.0",
25-
"starlight-links-validator": "^0.5.3",
26-
"tailwindcss": "^3.4.4"
17+
"@astrojs/starlight-tailwind": "^4.0.0",
18+
"@expressive-code/plugin-collapsible-sections": "^0.41.1",
19+
"@fontsource-variable/inter": "^5.2.5",
20+
"@fontsource-variable/jetbrains-mono": "^5.2.5",
21+
"@tailwindcss/vite": "^4.1.4",
22+
"astro": "^5.7.1",
23+
"sharp": "^0.34.1",
24+
"starlight-image-zoom": "^0.12.0",
25+
"starlight-links-validator": "^0.16.0",
26+
"tailwindcss": "^4.1.4"
2727
},
2828
"devDependencies": {
29-
"@netlify/plugin-lighthouse": "^6.0.0",
29+
"@netlify/plugin-lighthouse": "^6.0.1",
3030
"netlify-plugin-submit-sitemap": "^0.4.0",
31-
"prettier": "^3.3.2",
32-
"prettier-plugin-astro": "^0.13.0",
33-
"prettier-plugin-tailwindcss": "^0.5.14"
31+
"prettier": "^3.5.3",
32+
"prettier-plugin-astro": "^0.14.1",
33+
"prettier-plugin-tailwindcss": "^0.6.11"
3434
}
3535
}

0 commit comments

Comments
 (0)