forked from callstack/react-native-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
118 lines (114 loc) · 2.99 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
const repoUrl = 'https://github.com/callstack/react-native-testing-library';
const title = 'React Native Testing Library';
const siteConfig = {
title, // Title for your website.
tagline: 'Helps you to write better tests with less effort.',
url: 'https://callstack.github.io', // Your website URL
baseUrl: '/react-native-testing-library/', // Base URL for your project
// The name of the GitHub repository. Used by the deployment command
projectName: 'react-native-testing-library',
organizationName: 'callstack',
favicon: 'img/owl.png',
trailingSlash: false,
themeConfig: {
navbar: {
title,
logo: {
alt: title,
src: 'img/owl.png',
},
items: [
{ to: 'docs/getting-started', label: 'Docs', position: 'right' },
{ href: repoUrl, label: 'GitHub', position: 'right' },
],
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3,
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
key: 1,
label: 'Getting started',
to: 'docs/getting-started',
},
{
key: 2,
label: 'API',
to: 'docs/api',
},
],
},
{
title: 'Community',
items: [
{
key: 3,
label: 'Stack Overflow',
href: 'http://stackoverflow.com/questions/tagged/react-native-testing-library',
},
{
key: 4,
label: 'Discord Channel',
href: 'https://discord.gg/QbGezWe',
},
],
},
{
title: 'More',
items: [
{
key: 5,
label: 'GitHub',
href: repoUrl,
},
{
key: 6,
label: 'Star',
href: repoUrl,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Callstack Open Source`,
},
image: 'img/owl.png',
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
defaultLanguage: 'jsx',
},
algolia: {
appId: '6CJ0BV6AVN',
apiKey: '198ecded5a7987b04767482a8d6fe602',
indexName: 'crawler_React Native Testing Library Docs',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: `${repoUrl}/blob/main/website`,
sidebarCollapsible: false,
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl: `${repoUrl}/blob/main/blog`,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};
module.exports = siteConfig;