/
docusaurus.config.js
138 lines (135 loc) · 3.98 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
const fs = require('fs');
const path = require('path');
const pkg = require('./package.json');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
module.exports = {
title: 'Remirror',
tagline: pkg.description,
url: 'https://remirror.io',
baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'remirror', // Usually your GitHub org/user name.
projectName: 'remirror', // Usually your repo name.
themeConfig: {
image:
'https://repository-images.githubusercontent.com/166780923/eb30b500-a97f-11ea-8508-32089c11e24c',
colorMode: {
// "light" | "dark"
defaultMode: 'light',
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
// Should we use the prefers-color-scheme media-query,
// using user system preferences, instead of the hardcoded defaultMode
// respectPrefersColorScheme: true,
},
navbar: {
logo: {
alt: 'Remirror Logo',
src: 'img/logo.svg',
},
items: [
{
to: 'docs',
activeBasePath: 'docs',
label: 'Docs',
position: 'right',
},
{
to: 'docs/api',
activeBasePath: 'docs/api',
label: 'API',
position: 'right',
},
{ to: '/blog', label: 'Blog', position: 'right' },
{ to: '/chat', label: 'Chat', position: 'right' },
{
href: 'https://github.com/remirror/remirror',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: 'docs',
},
{
label: 'Installation',
to: 'docs/installation',
},
{ label: 'Storybook', href: 'https://remirror.vercel.app' },
],
},
{
title: 'Community',
items: [
{ label: 'Discord', to: '/chat' },
{ label: 'Twitter', href: 'https://twitter.com/@remirrorio' },
],
},
{
title: 'More',
items: [
{ label: 'Blog', to: 'blog' },
{ label: 'GitHub', href: 'https://github.com/remirror/remirror' },
{
html: `
<a href="https://www.netlify.com" target="_blank" rel="noreferrer noopener" aria-label="Hosted with Netlify">
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" alt="Hosted with Netlify" />
</a>
`,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} KickJump Ltd. Built with Docusaurus`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
googleAnalytics: { trackingID: 'UA-135738542-1', anonymizeIP: true },
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: path.join(__dirname, '../docs'),
sidebarPath: require.resolve('./sidebar.js'),
editUrl: 'https://github.com/remirror/remirror/edit/HEAD/website/',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/remirror/remirror/edit/HEAD/website/blog/',
},
theme: {
customCss: require.resolve('./styles.css'),
},
},
],
],
plugins: [
path.join(__dirname, 'plugins', 'basic-plugin.js'),
require.resolve('@docusaurus/plugin-ideal-image'),
[
'docusaurus-plugin-examples',
{
path: path.join(__dirname, 'examples'),
include: ['*.{js,jsx,ts,tsx}'],
exclude: ['*.test.{js,jsx,ts,tsx}'],
},
],
],
stylesheets: [
'https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap',
],
};