-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro.config.mjs
More file actions
143 lines (139 loc) · 3.45 KB
/
astro.config.mjs
File metadata and controls
143 lines (139 loc) · 3.45 KB
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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightSidebarTopics from 'starlight-sidebar-topics'
import starlightThemeObsidian from 'starlight-theme-obsidian'
const NETLIFY_PREVIEW_SITE = process.env.CONTEXT !== 'production' && process.env.DEPLOY_PRIME_URL;
const site = NETLIFY_PREVIEW_SITE || 'https://tlmodding.github.io/';
const ogUrl = new URL('banner.png?v=1', site).href;
const ogImageAlt = 'Your place for everything about Tomodachi Life modding!';
// https://astro.build/config
export default defineConfig({
site: "https://tlmodding.github.io",
integrations: [
starlight({
title: 'Tomodachi Modding',
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en'
},
'pt-br': {
label: "Português (BR)",
lang: 'pt-BR'
}
},
components: {
Sidebar: './src/overrides/Sidebar.astro',
},
customCss: [
'./src/styles/custom.css',
],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/tlmodding/tlmodding.github.io' },
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/YHFNTvXrdE' },
{ icon: 'heart', label: 'GameBanana', href: 'https://gamebanana.com/games/23911' }
],
head: [
{
tag: 'meta',
attrs: { property: 'og:image', content: ogUrl },
},
{
tag: 'meta',
attrs: { property: 'og:image:alt', content: ogImageAlt },
},
{
tag: 'meta',
attrs: { name: 'theme-color', content: '#ff6d02' },
}
],
editLink: {
baseUrl: "https://github.com/tlmodding/tlmodding.github.io/edit/master/"
},
expressiveCode: {
themes: ['dracula', 'one-light'],
},
plugins: [
starlightThemeObsidian({
debug: false,
sitemapConfig: {},
graphConfig: {},
backlinksConfig: {},
graph: false,
backlinks: true,
}),
starlightSidebarTopics([
{
label: 'Wiki',
link: '/getting-started/overview',
icon: 'open-book',
items: [
{
label: 'Getting Started',
autogenerate: { directory: "getting-started" }
},
{
label: 'Creating Mods',
autogenerate: { directory: "creating-mods" }
},
{
label: 'Tools',
autogenerate: { directory: 'tools' }
},
{
label: 'Guides',
autogenerate: { directory: "guides" }
},
]
},
{
label: 'Living the Dream',
link: '/living-the-dream',
icon: 'star',
items: [{
label: 'Getting Started',
items:[{
label: 'Overview',
link: '/living-the-dream',
},
{
label: 'Spreadsheets',
link: '/living-the-dream/spreadsheets',
}]
},
{
label: 'Tools',
autogenerate: { directory: 'living-the-dream/tools' },
}]
},
{
label: 'Documentation',
link: '/documentation',
icon: 'laptop',
items: [{
label: 'Documentation',
items:[{
label: 'Getting Started',
link: '/documentation',
}]
},
{
label: 'Living the Dream',
autogenerate: { directory: 'documentation/living-the-dream' },
},
{
label: 'Tomodachi Life (3DS)',
autogenerate: { directory: 'documentation/tomodachi-life-3ds' },
},
{
label: 'File Formats',
autogenerate: { directory: 'documentation/file-formats' },
}]
},
])
]
}),
],
});