-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
146 lines (145 loc) · 4.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightDocSearch from '@astrojs/starlight-docsearch';
// https://astro.build/config
export default defineConfig({
redirects: {
'/': {
status: 301,
destination: '/getting-started/',
},
},
site: 'https://docs.thulite.io/',
integrations: [starlight({
head: [
{
tag: 'meta',
attrs: {
property: 'og:image',
content: 'https://docs.thulite.io/cover-docs.png',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content: 'https://docs.thulite.io/cover-docs.png',
},
},
{
tag: 'script',
attrs: {
src: 'https://plausible.io/js/script.js',
'data-domain': 'docs.thulite.io',
defer: true,
},
},
],
title: 'Thulite Docs',
description: 'Node.js web framework designed for speed and security. Build the website you want with integrations, and deploy everywhere, all powered by Hugo and npm.',
components: {
MarkdownContent: './src/components/starlight/MarkdownContent.astro',
TableOfContents: './src/components/TableOfContents.astro',
},
plugins: [
starlightDocSearch({
appId: '70H5139H21',
apiKey: '401f8b545478ebe52faeeeb6cf77cefc',
indexName: 'thulite',
}),
],
logo: {
light: './src/assets/light-logo.svg',
dark: './src/assets/dark-logo.svg',
alt: 'Thulite',
replacesTitle: true,
},
editLink: {
baseUrl: 'https://github.com/thuliteio/docs/edit/main/',
},
sidebar: [
{
label: 'Start Here',
items: [
{ label: 'Getting Started', link: '/getting-started/'},
{ label: 'Installation', link: '/install/auto/' },
{ label: 'Editor Setup', link: '/editor-setup/' },
{ label: 'Upgrade Thulite', link: '/upgrade-thulite/' },
],
},
{
label: 'Concepts',
autogenerate: { directory: 'concepts' },
},
{
label: 'Basics',
autogenerate: { directory: 'basics' },
},
{
label: 'Built-ins',
collapsed: true,
items: [
{ label: 'Archetypes', link: '/guides/archetypes/' },
{ label: 'Data', link: '/guides/data/' },
{ label: 'Internationalization', link: '/guides/internationalization/' },
{ label: 'Static', link: '/guides/static/' },
],
},
{
label: 'Add-ons',
items: [
{ label: 'Add integrations', link: '/guides/integrations/' },
{ label: 'Add a theme', link: '/guides/themes/' },
{ label: 'Email obfuscation', link: '/guides/email-obfuscation/' },
],
},
{
label: 'Recipes',
items: [
{ label: 'Add analytics', link: '/guides/analytics/' },
{ label: 'Connect a CMS', link: '/guides/cms/' },
{ label: 'Deploy your site', link: '/guides/deploy/' },
],
},
{
label: 'Guides',
items: [
{ label: 'Markdown', link: '/guides/markdown/' },
{ label: 'CSS & Styling', link: '/guides/styles/' },
{ label: 'JavaScript', link: '/guides/scripts/' },
{ label: 'Images', link: '/guides/images/' },
{ label: 'Fonts', link: '/guides/fonts/' },
],
},
{
label: 'Reference',
collapsed: true,
items: [
{ label: 'Configuration', link: '/reference/configuration/' },
{ label: 'Frontmatter', link: '/reference/frontmatter/' },
{ label: 'Markdown', link: '/reference/markdown/' },
],
},
],
social: {
openCollective: 'https://opencollective.com/thulite',
github: 'https://github.com/thuliteio',
'x.com': 'https://x.com/thuliteio',
mastodon: 'https://fosstodon.org/@thulite',
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
lastUpdated: true,
favicon: '/favicon.svg',
titleDelimiter: '—',
})
],
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
image: {
service: {
entrypoint: 'astro/assets/services/sharp'
}
}
});