22
33import { defineConfig } from 'astro/config' ;
44import starlight from '@astrojs/starlight' ;
5+ import tailwindcss from '@tailwindcss/vite' ;
56import starlightLinksValidator from 'starlight-links-validator' ;
67import starlightAutoSidebar from 'starlight-auto-sidebar' ;
78import starlightImageZoom from 'starlight-image-zoom' ;
9+ import starlightThemeNova from 'starlight-theme-nova' ;
810import opengraphImages from 'astro-opengraph-images' ;
911import { renderer } from './src/og/renderer.tsx' ;
1012import { readFileSync } from 'node:fs' ;
@@ -15,8 +17,12 @@ const site = 'https://docs.shorebird.dev/';
1517// https://astro.build/config
1618export default defineConfig ( {
1719 site,
20+ vite : {
21+ plugins : [ tailwindcss ( ) ] ,
22+ } ,
1823 integrations : [
1924 starlight ( {
25+ expressiveCode : false ,
2026 title : 'Shorebird' ,
2127 tagline : 'Flutter Code Push' ,
2228 logo : {
@@ -38,9 +44,23 @@ export default defineConfig({
3844 ] ,
3945 editLink : { baseUrl : 'https://github.com/shorebirdtech/docs/edit/main/' } ,
4046 favicon : 'favicon.svg' ,
41- components : { Head : './src/components/starlight/Head.astro' } ,
42- customCss : [ './src/tailwind.css' ] ,
43- expressiveCode : { themes : [ 'dark-plus' , 'github-light' ] } ,
47+ head : [
48+ {
49+ tag : 'link' ,
50+ attrs : {
51+ rel : 'preload' ,
52+ href : '/fonts/GeneralSans-Variable.woff2' ,
53+ as : 'font' ,
54+ type : 'font/woff2' ,
55+ crossorigin : '' ,
56+ } ,
57+ } ,
58+ ] ,
59+ components : {
60+ Head : './src/components/starlight/Head.astro' ,
61+ ThemeSelect : './src/components/ThemeSelect.astro' ,
62+ } ,
63+ customCss : [ './src/styles/custom.css' ] ,
4464 sidebar : [
4565 { label : 'Welcome' , link : '/' } ,
4666 {
@@ -78,6 +98,7 @@ export default defineConfig({
7898 } ,
7999 ] ,
80100 plugins : [
101+ starlightThemeNova ( ) ,
81102 starlightAutoSidebar ( ) ,
82103 starlightImageZoom ( ) ,
83104 starlightLinksValidator ( {
0 commit comments