11import { defineConfig } from "astro/config" ;
22import starlight from "@astrojs/starlight" ;
3- import tailwind from "@astrojs/tailwind" ;
43import starlightDocSearch from "@astrojs/starlight-docsearch" ;
54import starlightImageZoom from "starlight-image-zoom" ;
65import liveCode from "astro-live-code" ;
@@ -18,6 +17,8 @@ import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
1817import rehypeExternalLinks from "./src/plugins/rehype/external-links.ts" ;
1918import rehypeHeadingSlugs from "./src/plugins/rehype/heading-slugs.ts" ;
2019
20+ import tailwindcss from "@tailwindcss/vite" ;
21+
2122async 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