-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
157 lines (156 loc) · 4.18 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
const math = require('remark-math')
const katex = require('rehype-katex')
module.exports = {
title: 'Parry',
tagline: '2D and 3D collision-detection library for the Rust programming language.',
url: 'https://parry.rs',
baseUrl: '/',
onBrokenLinks: 'error', // 'throw',
favicon: 'img/favicon.png',
organizationName: 'dimforge', // Usually your GitHub org/user name.
projectName: 'parry', // Usually your repo name.
themeConfig: {
prism: {
theme: require('prism-react-renderer/themes/github'),
additionalLanguages: ['toml', 'rust'],
},
// announcementBar: {
// id: 'supportus',
// content:
// '⭐️ If you like Parry, support us on <a target="_blank" rel="noopener noreferrer" href="https://github.com/sponsors/dimforge">GitHub Sponsor</a>! ⭐️',
// },
navbar: {
title: 'Parry',
logo: {
alt: 'Parry Logo',
src: 'img/logo_parry_wo_text.svg',
},
hideOnScroll: true,
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
to: '/community',
position: 'left',
activeBaseRegex: `/community/`,
label: 'Community',
},
{
href: 'https://dimforge.com/blog',
label: 'Blog ↪',
position: 'left',
},
// {to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/sponsors/dimforge',
label: 'Donate ♥',
position: 'right',
className: 'header-button-donate'
},
{
href: 'https://dimforge.com',
label: 'Dimforge ↪',
position: 'right',
},
{
href: 'https://github.com/dimforge/parry',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Dimforge EURL Logo',
src: 'https://www.dimforge.com/img/logo/logo_dimforge_small_rect.svg',
href: 'https://www.dimforge.com/'
},
copyright: `Built by <a href="https://www.dimforge.com">Dimforge, EURL</a>.`,
links: [
{
title: 'Resources',
items: [
{
label: 'Documentation',
to: 'docs/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/parry',
},
{
label: 'Discord',
href: 'https://discord.gg/vt9DJSW',
},
// {
// label: 'Twitter',
// href: 'https://twitter.com/dimforge',
// },
],
},
{
title: 'More',
items: [
// {
// label: 'Blog',
// to: 'blog',
// },
{
label: 'GitHub',
href: 'https://github.com/dimforge/parry',
},
],
},
],
// copyright: `Copyright © ${new Date().getFullYear()} Dimforge EURL. Website built with Docusaurus.`,
},
},
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebar_community.js'),
showLastUpdateTime: false,
}
],
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebar_docs.js'),
showLastUpdateTime: false,
remarkPlugins: [math],
rehypePlugins: [katex],
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/dimforge/parry.rs/edit/master/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
stylesheets: [
'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css'
]
};