-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
239 lines (225 loc) · 9.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "NativeFlow",
tagline:
"Utility style-objects for React Native, to seamlessly switch from Tailwind on web to NativeFlow on app, no extra setup required, import and use!",
favicon: "img/favicon.svg",
// Set the production url of your site here
url: "https://nativeflow.js.org",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "nativeflowteam", // Usually your GitHub org/user name.
projectName: "documentation", // Usually your repo name.
deploymentBranch: "gh-pages", // The branch where GitHub Pages will deploy
trailingSlash: false, // Set to false to avoid trailing slashes in URLs
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: "./sidebars.js",
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/nativeflowteam/documentation/blob/main/",
},
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/nativeflowteam/documentation/blob/main/",
// Useful options to enforce blogging best practices
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
},
theme: {
customCss: "./src/css/theme.css",
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
metadata: [
{
name: "keywords",
content: "react native, react native expo, react native paper, react native cli, react native tutorial, react native stylesheet, react native navigation, react native app, react native animations, react native android, react native alternatives, react native action sheet, animated react native, android studio react native, react native box shadow, react native border, react native button style, react native button style, react native background image, box shadow react native, background image react native, best react native ui library, border react native, react native config, react native docs, react native elements, react native expo tutorial, react native elevation, expo vs react native, expo go react native, react native flex, react native frameworks, react native fs, flex react native, github react native, react native flow, nativeflow, nativeflowcss, nativeflow css, native flow, justifycontent react native, javascript reactjs, mern stack, reactjs tutorial, react and redux, reduxs, react with redux, css grid css, react js redux, react js with redux, react redux js, reactjs native, redux for react, progressive web app, react component library, pwa app, storybooks, next js template, git tutorial for beginners, documentation maker, pwa progressive web app, table in react, component library react, react js table, react js charts, chart in react js, mern stack project, reactjs charts, charts for react, react site, chart react js, react js component library, reactjs component library, react js graph, graphs in react, react for website, carousel react js, react native play video, css layout grid, react js carousel, carousel for react, carousel in react js, carousel reactjs, chart js in react, chart reactjs, charts with react, create nextapp, css grid display, css minification, d3 data driven documents, daisy ui, datepicker in react, documentation node js, dropzone react js, formvalidation js, generate json from json schema, generate json from schema, git tutor, html form with javascript validation, html minification, javascript minification, javascript minified, js minification, json generate schema, json generator from schema, json schema for json schema, json schema from json, json schema generator from json, json to json schema generator, json to pretty, json to schema generator, json with schema, leaflet js react, minification html, module node js, next authjs, nuclear music app, play video in react native, react calendar picker, react date pickers, react date selector, react daterange, react js and redux, react js chart js, react js date picker, react js grid layout, react js tooltip, react native and redux, react native with redux, react what is redux, reactjs carousel, reactjs graph, reactjs redux toolkit, reactjs tooltip, reactjsorg, redux and react native, redux js tutorial, redux on react native, redux sagas, redux with react js, saga redux"
},
{
name: "twitter:image:src",
content: "https://mathdebate09.github.io/dummy-img-cdn/assets/nativeflow/twitter.png"
},
{
name: "twitter:site",
content: "@jayowiee"
},
{
name: "twitter:card",
content: "sumarry_large_image"
},
{
name: "twitter:title",
content: "NativeFlow - Styling library for React Native"
},
{
name: "twitter:description",
content: "Built to stay closer to ecosystem so that things break less often"
},
{
name: "og:image",
content: "https://mathdebate09.github.io/dummy-img-cdn/assets/nativeflow/meta.png",
},
{
name: "og:image:alt",
content: "NativeFlow, style React Native. Faster. Better."
},
{
name: "og:image:width",
content: "791"
},
{
name: "og:image:height",
content: "446"
},
{
name: "og:site_name",
content: "NativeFlow"
},
{
name: "og:type",
content: "object"
},
{
name: "url",
content: "https://nativeflow.js.org"
},
],
navbar: {
title: "NativeFlow",
logo: {
alt: "logo",
src: "img/favicon.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Docs",
},
// { to: "/blog", label: "Blog", position: "left" },
{
href: "https://github.com/nativeflowteam/nativeflowcss",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Tutorials",
items: [
{
label: "Docs",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "NpmJs",
href: "https://www.npmjs.com/package/nativeflowcss",
},
{
label: "X",
href: "https://x.com/jayowiee",
},
{
label: "Discord",
href: "https://discord.gg/KcKTtuqV3Y",
},
],
},
{
title: "Donations",
items: [
{
label: "Ko-Fi",
href: "https://ko-fi.com/mathdebate09",
},
{
label: "PayPal",
href: "https://www.paypal.com/paypalme/jayowiee",
},
{
label: "Patreon",
href: "https://www.patreon.com/mathdebate09",
},
],
},
{
title: "More",
items: [
// {
// label: "Blog",
// to: "/blog",
// },
{
label: "Contribute",
href: "https://github.com/nativeflowteam/documentation",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} NativeFlowTeam Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
algolia: {
// The application ID provided by Algolia
appId: "JS9CS35WNO",
// Public API key: it is safe to commit it
apiKey: "ed51f308fbb2a7eca6a0158b552b8084",
indexName: "nativeflow-js",
// Optional: see doc section below
contextualSearch: true,
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: "search",
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
},
}),
};
export default config;