-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
107 lines (98 loc) · 2.8 KB
/
docusaurus.config.js
File metadata and controls
107 lines (98 loc) · 2.8 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
const lightCodeTheme = require('./src/theme/CodeBlock/highlighting-light.js');
const darkCodeTheme = require('./src/theme/CodeBlock/highlighting-dark.js');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'React Native ExecuTorch',
tagline:
'Declarative way to run AI models in React Native on device, powered by ExecuTorch',
favicon: 'img/favicon.ico',
url: 'https://docs.swmansion.com',
baseUrl: '/react-native-executorch/',
trailingSlash: false,
organizationName: 'software-mansion',
projectName: 'react-native-executorch',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
breadcrumbs: false,
sidebarPath: require.resolve('./sidebars.js'),
sidebarCollapsible: false,
editUrl:
'https://github.com/software-mansion/react-native-executorch/edit/main/docs',
},
theme: {
customCss: require.resolve('./src/css/index.css'),
},
gtag: {
trackingID: 'G-TJND8QJM9P',
anonymizeIP: true,
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
},
image: 'img/og-image.png',
navbar: {
title: 'React Native ExecuTorch',
hideOnScroll: true,
logo: {
alt: 'React Native ExecuTorch',
src: 'img/logo-hero.svg',
},
items: [
{
to: 'docs/fundamentals/getting-started',
activeBasePath: 'docs',
label: 'Docs',
position: 'right',
},
{
'href': 'https://discord.gg/ZGqqY55qkP',
'position': 'right',
'className': 'header-discord',
'aria-label': 'Discord server',
},
{
'href':
'https://github.com/software-mansion/react-native-executorch',
'position': 'right',
'className': 'header-github',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'light',
links: [],
copyright:
'All trademarks and copyrights belong to their respective owners.',
},
prism: {
additionalLanguages: ['bash'],
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: '9PIVJVUUXB',
apiKey: '8634751cfd500c6708f63ea5fc7446c6',
indexName: 'swmansion',
},
}),
};
module.exports = config;