-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocusaurus.config.js
88 lines (80 loc) · 2.23 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
const lightCodeTheme = require('./src/theme/CodeBlock/highlighting-light.js');
const darkCodeTheme = require('./src/theme/CodeBlock/highlighting-dark.js');
// @ts-check
const webpack = require('webpack');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'React Native ExecuTorch',
favicon: 'img/favicon.ico',
url: 'https://docs.swmansion.com',
baseUrl: '/react-native-executorch/',
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,
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/og-image.png',
navbar: {
title: 'React Native ExecuTorch',
hideOnScroll: true,
logo: {
alt: 'React Native ExecuTorch',
src: 'img/logo-hero.svg',
},
items: [
{
'href':
'https://github.com/software-mansion/react-native-executorch',
'position': 'right',
'className': 'header-github',
'aria-label': 'GitHub repository',
},
],
},
announcementBar: {
content: ' ',
backgroundColor: '#03c',
textColor: '#fff',
},
footer: {
style: 'light',
links: [],
copyright:
'All trademarks and copyrights belong to their respective owners.',
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: '9PIVJVUUXB',
apiKey: '8634751cfd500c6708f63ea5fc7446c6',
indexName: 'swmansion',
},
}),
};
module.exports = config;