Skip to content

Commit 8734c79

Browse files
committed
[Docs Site] Upgrade to Tailwind v4
1 parent daae688 commit 8734c79

20 files changed

+1133
-1706
lines changed

astro.config.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { defineConfig } from "astro/config";
22
import starlight from "@astrojs/starlight";
3-
import tailwind from "@astrojs/tailwind";
43
import starlightDocSearch from "@astrojs/starlight-docsearch";
54
import starlightImageZoom from "starlight-image-zoom";
65
import liveCode from "astro-live-code";
@@ -18,6 +17,8 @@ import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
1817
import rehypeExternalLinks from "./src/plugins/rehype/external-links.ts";
1918
import rehypeHeadingSlugs from "./src/plugins/rehype/heading-slugs.ts";
2019

20+
import tailwindcss from "@tailwindcss/vite";
21+
2122
async function autogenSections() {
2223
const sections = (
2324
await readdir("./src/content/docs/", {
@@ -90,11 +91,19 @@ export default defineConfig({
9091
src: "./src/assets/logo.svg",
9192
},
9293
favicon: "/favicon.png",
93-
social: {
94-
github: "https://github.com/cloudflare/cloudflare-docs",
95-
"x.com": "https://x.com/cloudflare",
96-
youtube: "https://www.youtube.com/cloudflare",
97-
},
94+
social: [
95+
{
96+
label: "GitHub",
97+
icon: "github",
98+
href: "https://github.com/cloudflare/cloudflare-docs",
99+
},
100+
{ label: "X.com", icon: "x.com", href: "https://x.com/cloudflare" },
101+
{
102+
label: "YouTube",
103+
icon: "youtube",
104+
href: "https://www.youtube.com/cloudflare",
105+
},
106+
],
98107
editLink: {
99108
baseUrl:
100109
"https://github.com/cloudflare/cloudflare-docs/edit/production/",
@@ -145,9 +154,6 @@ export default defineConfig({
145154
],
146155
lastUpdated: true,
147156
}),
148-
tailwind({
149-
applyBaseStyles: false,
150-
}),
151157
liveCode({}),
152158
icon(),
153159
sitemap({
@@ -174,5 +180,7 @@ export default defineConfig({
174180
),
175181
},
176182
},
183+
184+
plugins: [tailwindcss()],
177185
},
178186
});

0 commit comments

Comments
 (0)