-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
77 lines (76 loc) · 3.15 KB
/
astro.config.mjs
File metadata and controls
77 lines (76 loc) · 3.15 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
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import tailwind from '@astrojs/tailwind'
import starlightScrollToTop from 'starlight-scroll-to-top'
import starlightThemeObsidian from 'starlight-theme-obsidian'
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Full-Pack',
favicon: 'favicon.png',
logo: { dark: '/src/assets/fp_logo_dark.png', light: '/src/assets/fp_logo_light.png', replacesTitle: true },
sidebar: [
{
label: 'String-Pack',
badge: { text: 'v1', variant: 'note', size: 'small' },
items: [
{ label: 'Getting Started', link: '/string-pack/' },
{
label: 'APIs',
items: [
{ label: 'merge', link: '/string-pack/merge' },
{ label: 'reverse', link: '/string-pack/reverse' },
{ label: 'compare', link: '/string-pack/compare/' },
{ label: 'padding', link: '/string-pack/padding' },
{ label: 'regionMatchers', link: '/string-pack/region-matchers' },
{ label: 'caseConversion', link: '/string-pack/case-conversion' },
{ label: 'caseValidation', link: '/string-pack/case-validation' }
]
}
]
},
{
label: 'Classes',
badge: { text: 'Coming Soon', variant: 'note', size: 'medium' },
items: [
{ label: 'StringBuilder', link: '/string-pack/#' },
{ label: 'StringValidator', link: '/string-pack/#' }
]
}
],
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/full-pack' }],
customCss: [
// Path to your Tailwind base styles:
'./src/tailwind.css'
],
expressiveCode: {
// You can set configuration options here
themes: ['dark-plus', 'slack-ochin'],
styleOverrides: {
// You can also override styles
borderRadius: '0.5rem'
}
},
plugins: [
starlightScrollToTop({
position: 'right',
tooltipText: 'Back to top',
showTooltip: true,
smoothScroll: true,
threshold: 10,
svgPath: 'M12 4L6 10H9V16H15V10H18L12 4M9 16L12 20L15 16',
svgStrokeWidth: 2,
borderRadius: '20'
}),
starlightThemeObsidian({
graph: false
})
]
}),
tailwind({
// Disable the default base styles:
applyBaseStyles: false
})
]
})