forked from facebook/react-native-website
/
siteConfig.js
78 lines (75 loc) · 2.2 KB
/
siteConfig.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
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const RemarkablePlugins = require('./core/RemarkablePlugins');
const users = require('./showcase.json');
let communityRepos = [];
try {
communityRepos = require('./community-repos.json');
} catch (e) {
// We don't care if there are no repos synced locally
// We only care if we are on the CI server and about to deploy
}
const defaultVersionShown = '0.59';
const baseUrl = '/react-native/';
const repoUrl = 'https://github.com/facebook/react-native';
const siteConfig = {
title: 'React Native',
tagline: 'A framework for building native apps using React',
url: 'https://facebook.github.io',
baseUrl,
projectName: 'react-native',
repoUrl,
defaultVersionShown,
users,
communityRepos,
editUrl: 'https://github.com/facebook/react-native-website/blob/master/docs/',
headerLinks: [
{doc: 'getting-started', label: 'Docs'},
{doc: 'activityindicator', label: 'API'},
{page: 'help', label: 'Community'},
{blog: true, label: 'Blog'},
{search: true},
{href: repoUrl, label: 'GitHub'},
],
headerIcon: 'img/header_logo.png',
footerIcon: 'img/header_logo.png',
favicon: 'img/favicon.png',
colors: {
primaryColor: 'rgb(34, 34, 34)',
secondaryColor: 'rgba(255, 255, 255, 0.8)',
tintColor: '#f4f4f8',
backgroundColor: 'white',
},
blogSidebarCount: 'ALL',
algolia: {
apiKey: '2c98749b4a1e588efec53b2acec13025',
indexName: 'react-native-versions',
algoliaOptions: {
facetFilters: ['tags:VERSION'],
hitsPerPage: 5,
},
},
facebookAppId: '1677033832619985',
twitter: 'reactnative',
markdownPlugins: [
RemarkablePlugins.SnackPlayer,
RemarkablePlugins.ReactNativeWebPlayer,
],
usePrism: ['javascript', 'js', 'jsx', 'java', 'objective-c', 'json'],
highlight: {
theme: 'solarized-dark',
},
gaTrackingId: 'UA-41298772-2',
scripts: ['https://snack.expo.io/embed.js', baseUrl + 'js/codeblocks.js'],
cleanUrl: true,
scrollToTop: true,
scrollToTopOptions: {
zIndex: 100,
},
docsSideNavCollapsible: true,
};
module.exports = siteConfig;