forked from software-mansion/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
162 lines (160 loc) · 3.66 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
160
161
162
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const prismConfig = {
plain: {
color: '#ffffff',
backgroundColor: '#001a72',
},
styles: [
{
types: ['comment'],
style: {
color: '#aaaaaa',
fontStyle: 'italic',
},
},
{
types: ['string'],
style: {
color: '#ffffff',
},
},
{
types: ['punctuation'],
style: {
color: '#ffee86',
},
},
{
types: ['variable', 'constant', 'builtin', 'attr-name'],
style: {
color: '#a3b8ff',
},
},
{
types: ['number', 'operator'],
style: {
color: '#ffaaa8',
},
},
{
types: ['keyword'],
style: {
color: '#8ed3ef',
},
},
{
types: ['char'],
style: {
color: '#a3b8ff',
},
},
{
types: ['tag'],
style: {
color: '#ffaaa8',
},
},
{
types: ['function'],
style: {
color: '#a3b8ff',
},
},
],
};
/*
In swizzled components look for "SWM -" string to see our modifications
*/
module.exports = {
title: 'React Native Reanimated',
tagline: "React Native's Animated library reimplemented",
url: 'https://docs.swmansion.com',
baseUrl: '/react-native-reanimated/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/SWM_Fav_192x192.png',
organizationName: 'software-mansion',
customFields: {
shortTitle: 'Reanimated',
},
projectName: 'react-native-reanimated',
themeConfig: {
algolia: {
appId: 'CHLGM6BFRG',
apiKey: 'b87befadf62b27ce46142fee664e9c9c',
indexName: 'react-native-reanimated',
// contextualSearch: true, // doesn't work for some reason
},
colorMode: {
disableSwitch: true,
},
navbar: {
title: 'React Native Reanimated',
items: [
{
type: 'doc',
position: 'right',
docId: 'fundamentals/about',
label: 'Docs',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
{
type: 'search',
position: 'right',
},
{
className: 'github-navbar-logo',
href: 'https://github.com/software-mansion/react-native-reanimated/',
label: 'Github',
position: 'right',
},
],
},
footer: {
logo: {
alt: 'Software Mansion',
src: 'img/swmLogo.svg',
href: 'https://swmansion.com/',
},
},
prism: {
theme: prismConfig,
},
announcementBar: {
id: 'reanimated-beta-docs',
content:
"We're working on a full documentation rewrite. Check out the <a target='_blank' rel='noopener noreferrer' href='https://reanimated-beta-docs.swmansion.com/'>New Reanimated Docs</a> and <a target='_blank' rel='noopener noreferrer' href='https://github.com/software-mansion-labs/reanimated-beta-docs/discussions/12'>share your feedback</a> with us!",
backgroundColor: '#FFFFFF',
textColor: '#001A72',
isCloseable: false,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: undefined, // hide edit button
lastVersion: 'current', // <- this makes 3.x docs as default
versions: {
current: {
label: '3.x',
},
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-41044622-6',
anonymizeIP: true,
},
},
],
],
};