-
Notifications
You must be signed in to change notification settings - Fork 16
/
astro.config.ts
66 lines (65 loc) · 1.95 KB
/
astro.config.ts
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
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import { ExpressiveCodeTheme } from 'astro-expressive-code';
import { defineConfig } from 'astro/config';
import ecTwoSlash from 'expressive-code-twoslash';
import dacezuThemeJSON from './public/dacezu.json';
import sidebar from './sidebar.items';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
defaultLocale: 'root',
locales: {
// src/content/docs/
root: {
label: 'English',
lang: 'en',
},
// src/content/docs/es/
es: {
label: 'Español',
},
},
editLink: {
baseUrl: 'https://github.com/tiramisulabs/seyfert-docs/edit/main/',
},
expressiveCode: {
plugins: [ecTwoSlash()],
themes: [ExpressiveCodeTheme.fromJSONString(JSON.stringify(dacezuThemeJSON)), 'github-light'],
styleOverrides: {
codeFontFamily: 'JetBrains Mono Variable',
uiFontFamily: 'JetBrains Mono Variable',
//@ts-expect-error
'twoSlash.cursorColor': 'red',
},
},
favicon: '/icon.svg',
logo: {
src: './public/icon.svg',
},
title: 'Seyfert',
customCss: [
'./src/custom.css',
'@fontsource-variable/jetbrains-mono/wght.css',
'@fontsource-variable/inter/wght.css',
],
social: {
github: 'https://github.com/tiramisulabs/seyfert',
discord: 'https://discord.com/invite/XNw2RZFzaP',
},
sidebar,
components: {
Sidebar: './src/components/newSidebar.astro',
PageFrame: './src/components/pageFrame.astro',
PageTitle: './src/components/pageTitle.astro',
Header: './src/components/header.astro',
MobileTableOfContents: './src/components/mobileTableOfContents.astro',
},
}),
tailwind({
applyBaseStyles: false,
nesting: true,
}),
],
});