Skip to content

Commit ba461b4

Browse files
authored
fix: setup tailwind for blogs (wasp-lang#39)
1 parent 31a9b02 commit ba461b4

File tree

6 files changed

+1240
-95
lines changed

6 files changed

+1240
-95
lines changed

blog/astro.config.mjs

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,58 @@ import { defineConfig } from 'astro/config';
22
import starlight from '@astrojs/starlight';
33
import starlightBlog from 'starlight-blog';
44

5+
import tailwind from "@astrojs/tailwind";
6+
57
// https://astro.build/config
68
export default defineConfig({
79
site: 'https://opensaas.sh',
8-
integrations: [
9-
starlightBlog({
10-
title: 'Blog',
11-
authors: {
12-
vince: {
13-
name: 'Vince',
14-
title: 'Dev Rel @ Wasp',
15-
picture: '/CRAIG_ROCK.png', // Images in the `public` directory are supported.
16-
url: 'https://wasp-lang.dev',
17-
},
18-
},
19-
}),
20-
starlight({
21-
title: 'Your SaaS',
22-
description: 'Documentation for your SaaS.',
23-
logo: {
24-
src: '/src/assets/logo.png',
25-
alt: 'Your SaaS',
26-
},
27-
editLink: {
28-
baseUrl: 'https://github.com/<your-repo>',
29-
},
30-
components: {
31-
SiteTitle: './src/components/MyHeader.astro',
32-
MarkdownContent: 'starlight-blog/overrides/MarkdownContent.astro',
33-
Sidebar: 'starlight-blog/overrides/Sidebar.astro',
34-
// ThemeSelect: 'starlight-blog/overrides/ThemeSelect.astro',
35-
},
36-
social: {
37-
github: 'https://github.com/wasp-lang/open-saas',
38-
twitter: 'https://twitter.com/wasp_lang',
39-
discord: 'https://discord.gg/aCamt5wCpS',
40-
},
41-
sidebar: [
42-
{
43-
label: 'Start Here',
44-
items: [
45-
{ label: 'Introduction', link: '/' },
46-
],
47-
},
48-
{
49-
label: 'Guides',
50-
items: [
51-
{ label: 'Example Guide', link: '/guides/example/' },
10+
integrations: [starlightBlog({
11+
title: 'Blog',
12+
customCss: ['./src/styles/tailwind.css'],
13+
authors: {
14+
vince: {
15+
name: 'Vince',
16+
title: 'Dev Rel @ Wasp',
17+
picture: '/CRAIG_ROCK.png',
18+
// Images in the `public` directory are supported.
19+
url: 'https://wasp-lang.dev'
20+
}
21+
}
22+
}), starlight({
23+
title: 'Your SaaS',
24+
customCss: ['./src/styles/tailwind.css'],
25+
description: 'Documentation for your SaaS.',
26+
logo: {
27+
src: '/src/assets/logo.png',
28+
alt: 'Your SaaS'
29+
},
30+
editLink: {
31+
baseUrl: 'https://github.com/<your-repo>'
32+
},
33+
components: {
34+
SiteTitle: './src/components/MyHeader.astro',
35+
MarkdownContent: 'starlight-blog/overrides/MarkdownContent.astro',
36+
Sidebar: 'starlight-blog/overrides/Sidebar.astro'
37+
// ThemeSelect: 'starlight-blog/overrides/ThemeSelect.astro',
38+
},
5239

53-
],
54-
},
55-
],
56-
}),
57-
],
58-
});
40+
social: {
41+
github: 'https://github.com/wasp-lang/open-saas',
42+
twitter: 'https://twitter.com/wasp_lang',
43+
discord: 'https://discord.gg/aCamt5wCpS'
44+
},
45+
sidebar: [{
46+
label: 'Start Here',
47+
items: [{
48+
label: 'Introduction',
49+
link: '/'
50+
}]
51+
}, {
52+
label: 'Guides',
53+
items: [{
54+
label: 'Example Guide',
55+
link: '/guides/example/'
56+
}]
57+
}]
58+
}), tailwind({applyBaseStyles: false})]
59+
});

0 commit comments

Comments
 (0)