-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathdocusaurus.config.js
80 lines (79 loc) · 2.33 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
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'React Datasheet Grid',
tagline: 'An Excel-like React component to create beautiful spreadsheets',
url: 'https://react-datasheet-grid.netlify.app/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'nick-keller', // Usually your GitHub org/user name.
projectName: 'react-datasheet-grid', // Usually your repo name.
themeConfig: {
algolia: {
appId: 'OVO3D4IJS9',
apiKey: '0f37b9b0bd96aa1069cba400c005410b',
indexName: 'react-datasheet-grid',
contextualSearch: false,
searchPagePath: 'search',
},
announcementBar: {
content:
'⭐️ <b>If you like React-Datasheet-Grid, give it a star on <a target="_blank" href="https://github.com/nick-keller/react-datasheet-grid">GitHub</a> and follow us on <a target="_blank" href="https://twitter.com/NicolasKa3">Twitter</a>!</b>',
backgroundColor: '#8bd6c4',
},
navbar: {
title: 'React Datasheet Grid',
items: [
{
href: '/docs/features',
position: 'left',
label: 'Features',
},
{
type: 'doc',
docId: 'getting-started',
position: 'left',
label: 'Doc',
},
{
href: 'https://www.npmjs.com/package/react-datasheet-grid',
label: 'NPM',
position: 'right',
},
{
href: 'https://github.com/nick-keller/react-datasheet-grid',
label: 'GitHub',
position: 'right',
},
],
},
prism: {
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/nick-keller/react-datasheet-grid/edit/master/website/',
},
theme: {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('react-datasheet-grid/dist/style.css'),
],
},
gtag: {
trackingID: 'G-PZ8BTMNFN9',
},
},
],
],
}