Repository navigation
Expand file tree
/
Copy pathastro.config.mjs
More file actions
67 lines (66 loc) · 1.97 KB
/
Copy pathastro.config.mjs
File metadata and controls
67 lines (66 loc) · 1.97 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
// @ts-check
import react from '@astrojs/react';
import starlight from '@astrojs/starlight';
import {defineConfig} from 'astro/config';
import path from 'path';
// https://astro.build/config
export default defineConfig({
base: '/',
vite: {
resolve: {
alias: {
'@livePreview': path.resolve('./src/components/LivePreview/LivePreview.jsx'),
'@moduleData': path.resolve('./src/pages/docs/modules'),
'@modulePage': path.resolve('./src/components/Page/[...data].astro'),
'@utils': path.resolve('./src/utils/utils.jsx')
}
}
},
integrations: [starlight({
tableOfContents: false,
components: {
Footer: './src/components/Footer/Footer.astro',
Header: './src/components/Header/Header.astro',
Hero: './src/components/Hero/Hero.astro',
PageTitle: './src/components/PageTitle/PageTitle.astro',
Sidebar: './src/components/Sidebar/Sidebar.astro',
TwoColumnContent: './src/components/TwoColumnContent/TwoColumnContent.astro'
},
title: 'Enact',
logo: {
src: './src/assets/enact.svg'
},
social: [{icon: 'github', label: 'GitHub', href: 'https://github.com/enactjs/enact'}],
sidebar: [
{
label: 'API Libraries',
items: [{autogenerate: {directory: 'modules', collapsed: true}}]
},
{
label: 'Developer Guide',
items: [{autogenerate: {directory: 'developer-guide', collapsed: true}}]
},
{
label: 'Developer Tools',
items: [{autogenerate: {directory: 'developer-tools', collapsed: true}}]
},
{
label: 'Tutorials',
items: [{autogenerate: {directory: 'tutorials/intro', collapsed: true}}]
},
{
label: 'Hello Enact!',
items: [{autogenerate: {directory: 'tutorials/tutorial-hello-enact', collapsed: true}}]
},
{
label: 'Kitten Browser',
items: [{autogenerate: {directory: 'tutorials/tutorial-kitten-browser', collapsed: true}}]
},
{
label: 'TypeScript with Enact',
items: [{autogenerate: {directory: 'tutorials/tutorial-typescript', collapsed: true}}]
}
]
}),
react()]
});