-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
77 lines (73 loc) · 2.1 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
import { defineConfig } from 'astro/config'
import expressiveCode from 'astro-expressive-code'
// https://astro.build/config
import svelte from '@astrojs/svelte'
// https://astro.build/config
import sitemap from '@astrojs/sitemap'
// https://astro.build/config
import mdx from '@astrojs/mdx'
// https://astro.build/config
export default defineConfig({
site: 'https://octagon-api.com/',
integrations: [
svelte(),
sitemap(),
expressiveCode({
themes: ['slack-dark'],
plugins: [
{
name: 'custom-style',
baseStyles: () => `
.frame {
margin: 0.7rem 0;
}
.frame .header {
border-bottom: 2px solid #313131;
}
.frame code {
padding: 0.7rem 0;
}
.frame.has-title code {
padding-top: 0.5rem;
}
.frame.has-title:not(.is-terminal) .title {
font-size: 1.1rem;
background: linear-gradient(to top, var(--color-green-700) 1.5px, transparent 1.5px),linear-gradient(hsl(269deg 40% 65% / 0.15), hsl(269deg 40% 65% / 0.15));
background-clip: padding-box;
margin-block-start: 0;
padding: 0.25rem 1rem;
border-radius: 0.3rem 0.3rem 0 0;
border: 1.5px solid transparent;
border-bottom: none;
},
.frame.has-title:not(.is-terminal) .header {
display: flex;
background: linear-gradient(to top, transparent 0px, transparent 0px),linear-gradient(#212121, #212121);
background-repeat: no-repeat;
padding-inline-start: 0;
}
`,
hooks: {},
},
],
useThemedScrollbars: false,
useThemedSelectionColors: false,
styleOverrides: {
frames: {
styleOverrides: {
frameBoxShadowCssValue: 'none',
},
},
uiLineHeight: 'inherit',
codeFontSize: '1rem',
codeLineHeight: '1.4rem',
borderRadius: '4px',
borderWidth: '0px',
},
}),
mdx(),
],
server: {
port: 3000,
},
})