-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy pathsiteConfig.js
More file actions
123 lines (105 loc) · 3.61 KB
/
siteConfig.js
File metadata and controls
123 lines (105 loc) · 3.61 KB
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
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
const defaultVersionShown = "0.82";
const repoUrl = "https://github.com/microsoft/react-native-windows";
const siteConfig = {
title: "React Native for Windows",
tagline: "Build native Windows apps with Javascript and React",
url: "https://microsoft.github.io",
baseUrl: "/react-native-windows/v1/",
repoUrl,
defaultVersionShown,
// Used for publishing and more
projectName: "react-native-windows",
organizationName: "microsoft",
editUrl:
"https://github.com/microsoft/react-native-windows-samples/blob/main/docs/",
// For no header links in the top nav bar -> headerLinks: [],
headerLinks: [
{ doc: "getting-started", label: "Docs" },
{ doc: "flyout-component", label: "APIs" },
{ href:"https://devblogs.microsoft.com/react-native/" , label: "Blog" },
{ page: "resources", label: "Resources" },
{ href: repoUrl + "-samples/tree/main/samples", label: "Samples" },
{ page: "support", label: "Support" },
// { search: true }, https://community.algolia.com/docsearch/what-is-docsearch.html
],
/* path to images for header/footer */
headerIcon: "img/header_logo.svg",
footerIcon: "img/header_logo.png",
favicon: "img/favicon.ico",
/* Colors for website */
colors: {
brand: "#0e53bd", // electric blue
dark: "#e1e6eb", // dark blue
deepdark: "#ffffff", // really dark blue
light: "#373940", // light blue
text: "#1a1a1a", // black substitute
subtle: "#0e53bd", // light grey for text
divider: "#d1d7de", // very light grey
tintColor: "#e1e6eb", // slightly off white
backgroundColor: "white",
// we don't use these any more but docusaurus complains if we don't
primaryColor: "black",
secondaryColor: "gray",
},
usePrism: ["javascript", "typescript", "js", "jsx", "cpp", "csharp", "json"],
highlight: {
// Highlight.js theme to use for syntax highlighting in code blocks.
theme: "solarized-dark",
},
// Add custom scripts here that would be placed in <script> tags.
scripts: [
"https://cdn.jsdelivr.net/npm/focus-visible@5.0.2/dist/focus-visible.min.js",
"https://platform.twitter.com/widgets.js",
"https://buttons.github.io/buttons.js",
"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",
"/react-native-windows/js/code-block-buttons.js",
"/react-native-windows/js/nav-buttons.js"
],
stylesheets: ["/react-native-windows/css/code-block-buttons.css"],
// On page navigation for the current documentation page.
onPageNav: "separate",
// No .html extensions for paths.
cleanUrl: true,
// Open Graph and Twitter card images.
ogImage: "img/undraw_online.svg",
twitterImage: "img/undraw_tweetstorm.svg",
scrollToTop: true,
scrollToTopOptions: {
zIndex: 100,
},
// For sites with a sizable amount of content, set collapsible to true.
// Expand/collapse the links and subcategories under categories.
docsSideNavCollapsible: true,
enableUpdateTime: true,
customFields: require("./showcaseApps.json"),
deletedDocs: {
"0.80": [
"rnm-dependencies",
"rnm-getting-started"
],
"0.75": [
"nuget-update",
],
"0.74": [
"coreapp",
"CoreAppPage",
],
"0.73": [
"winui3",
],
"0.72": [
"IReactPackageBuilderExperimental",
"IReactRootViewExperimental",
"apptheme",
]
}
};
module.exports = siteConfig;