forked from react-navigation/react-navigation.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
executable file
·169 lines (168 loc) · 4.63 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
163
164
165
166
167
168
169
const path = require('path');
module.exports = {
title: 'React Navigation',
tagline: 'Routing and navigation for your React Native apps',
url: 'https://reactnavigation.org/',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'react-navigation',
projectName: 'react-navigation.github.io',
scripts: [
'https://buttons.github.io/buttons.js',
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
'/js/code-block-buttons.js',
],
themeConfig: {
announcementBar: {
id: 'support_ukraine',
content:
'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" href="https://opensource.facebook.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.',
backgroundColor: '#20232a',
textColor: '#fff',
isCloseable: false,
},
googleAnalytics: {
trackingID: 'UA-10128745-16',
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
algolia: {
apiKey: '2378e3838ac984c220a994bfc0e0420f',
indexName: 'react-navigation',
algoliaOptions: {},
},
navbar: {
title: 'React Navigation',
logo: {
alt: 'React Navigation Logo',
src: 'img/spiro.svg',
},
items: [
{ to: 'docs/getting-started', label: 'Docs', position: 'left' },
{ to: 'blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/react-navigation',
label: 'GitHub',
position: 'right',
},
{
to: 'help',
label: 'Help',
},
{
type: 'docsVersionDropdown',
position: 'left',
dropdownActiveClassDisabled: true,
dropdownItemsAfter: [
{
to: '/versions',
label: 'All versions',
},
],
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
to: 'docs/getting-started',
},
{
label: 'Building your own Navigator',
to: 'docs/custom-navigators',
},
{
label: 'Contributing',
to: 'docs/contributing',
},
],
},
{
title: 'Support',
items: [
{
label: 'Chat in our Discord channel',
href: 'https://discord.gg/reactiflux',
},
{
label: 'Get help on Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/react-navigation',
},
{
label: 'Request a feature on Canny',
href: 'https://react-navigation.canny.io/feature-requests',
},
{
label: 'Report a bug on GitHub',
href: 'https://github.com/react-navigation/react-navigation/issues/new/choose',
},
],
},
{
title: 'Social',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'GitHub',
href: 'https://github.com/react-navigation/react-navigation',
},
{
label: 'Twitter',
href: 'https://twitter.com/reactnavigation',
},
],
},
{
title: 'Built with',
items: [
{
label: 'Docusaurus',
to: 'https://docusaurus.io/',
},
{
label: 'GitHub Pages',
href: 'https://pages.github.com/',
},
{
label: 'Netlify',
href: 'https://www.netlify.com/',
},
],
},
],
},
},
plugins: [
path.resolve(__dirname, './src/plugins/docusaurus-plugin-redirect-html'),
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
docLayoutComponent: require.resolve('./src/pages/layouts/DocPage.js'),
docItemComponent: require.resolve('./src/pages/layouts/DocItem.js'),
editUrl:
'https://github.com/react-navigation/react-navigation.github.io/edit/main/',
remarkPlugins: [require('./src/plugins/remark-npm2yarn')],
includeCurrentVersion: false,
lastVersion: '6.x',
},
sidebarCollapsible: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};