-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
159 lines (157 loc) · 4.03 KB
/
docusaurus.config.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* eslint-disable sort-keys */
const pkgs = [
'addon-direction',
'addon-properties',
'addon-vendor',
'cli',
'compiler',
'core',
'core-react',
'react',
'react-native',
'style',
'system',
'types',
'utils',
// eslint-disable-next-line
].map((name) => require(`@aesthetic/${name}/package.json`));
module.exports = {
title: 'Aesthetic',
tagline:
'Aesthetic is an end-to-end design system and development framework for declaring consistent visual styles across platforms, languages, projects, and teams.',
url: 'https://aestheticsuite.dev',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.svg',
organizationName: 'aesthetic-suite',
projectName: 'website',
themeConfig: {
algolia: { apiKey: 'e69c3e49d282a965851e8e885091e26b', indexName: 'aestheticsuite' },
navbar: {
title: 'Aesthetic',
logo: {
alt: 'Aesthetic',
src: 'img/logo.svg',
},
items: [
{
label: 'BETA',
position: 'left',
items: pkgs.map((pkg) => ({
label: `v${pkg.version} · ${pkg.name.split('/')[1]}`,
href: `https://www.npmjs.com/package/${pkg.name}`,
})),
},
{
to: 'docs',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
to: 'docs/react',
activeBasePath: 'docs/react',
label: 'React',
position: 'left',
},
{
to: 'docs/react-native',
activeBasePath: 'docs/react-native',
label: 'React Native',
position: 'left',
},
{
label: 'Packages',
position: 'left',
items: [
{
label: 'Design system',
to: '/docs/packages/system',
},
{
label: 'CSS-in-JS engine',
to: '/docs/packages/style',
},
],
},
{
href: 'https://github.com/aesthetic-suite',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Learn',
items: [
{
label: 'Design system',
to: '/docs/design-system',
},
{
label: 'Design tokens',
to: '/docs/design-tokens',
},
],
},
{
title: 'Development',
items: [
{
label: 'CSS-in-JS',
to: '/docs/dev/css-in-js',
},
],
},
{
title: 'Integrations',
items: [
{
label: 'React',
to: '/docs/react',
},
{
label: 'React Native',
to: '/docs/react-native',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Roadmap',
href: 'https://github.com/aesthetic-suite/framework/blob/master/ROADMAP.md',
},
{
label: 'Changelog',
href: 'https://github.com/aesthetic-suite/framework/blob/master/CHANGELOG.md',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Aesthetic. Built with <a href="https://docusaurus.io/" target="_blank">Docusaurus</a>. Icon by <a href="https://thenounproject.com/tatiana.selicka/collection/triangle/?i=344801" target="_blank">Tatiana Selicka (Noun Project)</a>.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/aesthetic-suite/website/edit/master',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/aesthetic-suite/website/edit/master/blog',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};