-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
127 lines (126 loc) · 3.26 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import { defineConfig, squooshImageService } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import robotsTxt from 'astro-robots-txt';
import starlightBlog from 'starlight-blog';
import houston from './src/styles/houston.json';
// https://astro.build/config
export default defineConfig({
site: 'https://astro-ghostcms.xyz',
image: {
service: squooshImageService(),
},
integrations: [
starlight({
title: 'Astro-GhostCMS',
description: 'Easily migrate your Ghost Site to Astro, an Astro Integration & API that turns your Ghost server into a Headless CMS',
logo: {
src: './src/assets/spaceghost.png',
alt: "Spaceghost"
},
editLink: {
baseUrl: 'https://github.com/MatthiesenXYZ/astro-ghostcms-dot-xyz/edit/main/'
},
head: [
{
tag: 'script',
attrs: {
src: 'https://umami.matthiesen.dev/script.js',
'data-website-id': '16e95f38-e91b-4341-9648-14ba88bed8c0',
defer: true,
},
},
],
lastUpdated: true,
favicon: 'spaceghost.png',
customCss: [ './src/styles/tailwind.css' ],
components: {
SiteTitle: './src/components/starlight/SiteTitle.astro',
ThemeSelect: './src/components/starlight/ThemeSelect.astro',
Head: './src/components/starlight/Head.astro'
},
expressiveCode: {
themes: [ houston, 'starlight-light' ],
defaultProps: {
wrap: true,
},
},
plugins: [
starlightBlog({
title: 'Blog',
postCount: 15,
recentPostCount: 30,
authors: { adam: {
name: 'Adam Matthiesen',
title: 'Core Maintainer',
picture: './authors/adam.jpg',
url: 'https://github.com/AdamMatthiesen',
}}})
],
social: {
discord: 'https://discord.gg/u7NZqUyeAR',
github: 'https://github.com/MatthiesenXYZ/astro-ghostcms',
gitlab: 'https://gitlab.com/matthiesenxyz/astro-ghostcms',
},
sidebar: [
{ label: 'Introduction',
items: [
{ label: 'Getting Started', link: '/intro' },
{ label: 'Main Integration',
autogenerate: {
directory: '/intro/integration-mode'
}, },
{ label: 'Starlight Plugin',
autogenerate: {
directory: '/intro/starlight'
} } ] },
{ label: 'Advanced Usage',
badge: {
text: 'Coming Soon',
variant: 'caution'
},
autogenerate: {
directory: '/advanced'
} },
{ label: 'Themes',
items: [
{ label: 'Default Theme',
collapsed: true,
autogenerate: {
directory: '/themes/default'
} },
{ label: 'Catppuccin',
collapsed: true,
autogenerate: {
directory: '/themes/catppuccin'
} },
{ label: 'Brutal by Elian',
collapsed: true,
autogenerate: {
directory: '/themes/brutal'
} } ] },
{ label: 'Tools & Extras',
items: [
{ label: 'Ghost Render Util',
badge: {
text: 'Deprecated',
variant: 'danger'
},
collapsed: true,
autogenerate: {
directory: '/tools/contentrender'
} } ] },
{ label: 'Changelogs',
autogenerate: {
directory: '/changelogs'
}
},
],
}),
tailwind({
applyBaseStyles: false,
nesting: true,
}),
robotsTxt(),
],
});