-
Notifications
You must be signed in to change notification settings - Fork 46
/
astro.config.mjs
96 lines (94 loc) · 2.69 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind'
// https://astro.build/config
export default defineConfig({
site: 'https://drops-of-javascript.hi-folks.dev/',
integrations: [
starlight({
title: 'Some drops of JavaScript',
customCss: ['./src/styles/tailwind.css', './src/styles/custom.css'],
head: [
{
tag: 'meta',
attrs: {
property: 'og:image',
content:
'https://raw.githubusercontent.com/roberto-butti/some-drops-of-javascript/main/public/header.png',
},
},
{
tag: 'meta',
attrs: {
property: 'twitter:image',
content:
'https://raw.githubusercontent.com/roberto-butti/some-drops-of-javascript/main/public/header.png',
},
},
],
editLink: {
baseUrl:
'https://github.com/roberto-butti/some-drops-of-javascript/edit/main',
},
social: {
github: 'https://github.com/roberto-butti/some-drops-of-javascript',
},
sidebar: [
{
label: '📔 Intro',
autogenerate: { directory: '00-intro' },
collapsed: false,
},
{
label: '🧑💻 System',
autogenerate: { directory: '01-system' },
collapsed: true,
},
{
label: '📚 Array',
autogenerate: { directory: '02-array' },
collapsed: true,
},
{
label: '🧑🎨 Vars, Objects, Operators',
autogenerate: { directory: '03-var' },
collapsed: true,
},
{
label: '💫 Functions',
autogenerate: { directory: '04-functions' },
collapsed: true,
},
{
label: '🪕 Strings',
autogenerate: { directory: '05-string' },
collapsed: true,
},
{
label: '🗃️ Files',
autogenerate: { directory: '06-files' },
collapsed: true,
},
{
label: '[ 🧑💻 Sources ]',
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Markdown',
link: 'https://github.com/roberto-butti/some-drops-of-javascript/tree/main/src/content/docs',
},
{
label: 'Examples',
link: 'https://github.com/roberto-butti/some-drops-of-javascript/tree/main/examples',
},
],
collapsed: true,
},
],
}),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
],
})