-
Notifications
You must be signed in to change notification settings - Fork 253
/
docusaurus.config.js
143 lines (142 loc) · 3.39 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
const path = require('path');
module.exports = {
title: 'Grid.js',
tagline: 'Advanced JavaScript table plugin',
url: 'https://gridjs.io',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'grid-js',
projectName: 'website',
themeConfig: {
image: '/img/social.png',
algolia: {
appId: 'FIXME',
apiKey: '15086b8795378f5116d77008d1c3ebf0',
indexName: 'gridjs',
algoliaOptions: {} // Optional, if provided by Algolia
},
navbar: {
hideOnScroll: true,
title: 'Grid.js',
logo: {
alt: 'Grid.js',
src: 'img/logo.svg',
},
items: [
{
to: 'docs',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
to: 'docs/examples/hello-world',
activeBasePath: 'docs/examples',
label: 'Examples',
position: 'left'
},
{
to: 'docs/sponsors', label: 'Support Grid.js', position: 'left'
},
{
to: 'docs/community', label: 'Community', position: 'left'
},
{
to: 'blog', label: 'Blog', position: 'left'
},
{
href: 'https://www.npmjs.com/package/gridjs',
label: 'NPM',
position: 'right',
},
{
href: 'https://github.com/grid-js/gridjs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
to: 'docs',
},
{
label: 'Examples',
to: 'docs/examples/hello-world',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/gridjs',
},
{
label: 'Discord',
href: 'https://discord.gg/K55BwDY',
},
{
label: 'Twitter',
href: 'https://twitter.com/grid_js',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'GitHub',
href: 'https://github.com/grid-js/gridjs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Grid.js`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl:
'https://github.com/grid-js/website/edit/master/',
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/grid-js/website/edit/master/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css')
},
googleAnalytics: {
trackingID: 'UA-167499954-1',
},
},
],
],
themes: [require.resolve('@docusaurus/theme-live-codeblock')],
plugins: [
path.resolve(__dirname, './plugins/tailwind')
]
};