Repository navigation
Expand file tree
/
Copy pathastro.config.mjs
More file actions
62 lines (61 loc) · 2.1 KB
/
Copy pathastro.config.mjs
File metadata and controls
62 lines (61 loc) · 2.1 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
site: 'https://pionjs.com',
integrations: [
starlight({
title: 'PionJS',
logo: {
dark: './src/assets/logo.svg',
light: './src/assets/logo-navy.svg',
alt: 'PionJS',
replacesTitle: true,
},
social: [
{
label: 'GitHub',
icon: 'github',
href: 'https://github.com/pionjs/pion',
},
],
customCss: ['./src/styles/theme.css'],
components: {
Head: './src/components/Head.astro',
PageFrame: './src/components/PageFrame.astro',
},
sidebar: [
{
label: 'Guides',
collapsed: true,
items: [
{ label: 'Getting Started', slug: 'guides/getting-started' },
{ label: 'Bring Your Own Renderer', slug: 'guides/renderers' },
{ label: 'Styling', slug: 'guides/styling' },
{ label: 'Attributes', slug: 'guides/attributes' },
{ label: 'Properties', slug: 'guides/properties' },
{ label: 'API', slug: 'guides/api' },
{ label: 'Dispatching Events', slug: 'guides/events' },
{ label: 'Virtual Components', slug: 'guides/virtual' },
{ label: 'TypeScript', slug: 'guides/typescript' },
],
},
{
label: 'Hooks',
collapsed: true,
items: [
{ label: 'useCallback', slug: 'hooks/usecallback' },
{ label: 'useContext', slug: 'hooks/usecontext' },
{ label: 'useEffect', slug: 'hooks/useeffect' },
{ label: 'useHost', slug: 'hooks/usehost' },
{ label: 'useLayoutEffect', slug: 'hooks/uselayouteffect' },
{ label: 'useMemo', slug: 'hooks/usememo' },
{ label: 'useProperty', slug: 'hooks/useproperty' },
{ label: 'useReducer', slug: 'hooks/usereducer' },
{ label: 'useRef', slug: 'hooks/useref' },
{ label: 'useState', slug: 'hooks/usestate' },
],
},
],
}),
],
});