-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
185 lines (183 loc) · 6.56 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
const math = require('remark-math')
const katex = require('rehype-katex')
const config = {
title: 'wgmath',
tagline: 'Cross-platform GPU scientific computing.',
url: 'https://wgmath.rs',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.png',
organizationName: 'dimforge', // Usually your GitHub org/user name.
projectName: 'wgmath', // Usually your repo name.
themeConfig: {
// algolia: {
// apiKey: '2fb2392fe420e3f9cd94004bda27a775',
// appId: 'MDOZU7PTCV',
// indexName: 'rapier',
// },
prism: {
theme: require('prism-react-renderer').themes.github,
additionalLanguages: ['toml', 'rust'],
},
// announcementBar: {
// id: 'supportus',
// content:
// '⭐️ If you like Rapier, support us on <a target="_blank" rel="noopener noreferrer" href="https://github.com/sponsors/dimforge">GitHub Sponsor</a>! ⭐️',
// },
navbar: {
title: 'wgmath',
logo: {
alt: 'wgmath Logo',
src: 'img/wgmath_logo_color_small.svg',
},
hideOnScroll: true,
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
label: 'Demos',
position: 'left',
items: [
{
href: 'https://wgmath.rs/demos/wgsparkl2d/index.html', // FIXME: should depend on the base url.
label: '2D wgsparkl demos',
},
{
href: 'https://wgmath.rs/demos/wgsparkl3d/index.html', // FIXME: should depend on the base url.
label: '3D wgsparkl demos',
}
],
},
{
to: '/community',
position: 'left',
activeBaseRegex: `/community/`,
label: 'Community',
},
{
href: 'https://dimforge.com/blog',
label: 'Blog',
position: 'left',
},
{
value: '<a class="header-button-donate" href="https://github.com/sponsors/dimforge" target="_blank" rel="noopener noreferrer">Donate ♥</a>',
className: 'header-button-donate',
position: 'right',
type: 'html'
},
{
href: 'https://dimforge.com',
label: 'Dimforge',
position: 'right',
},
{
href: 'https://github.com/dimforge/wgmath',
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/',
// },
// {
// label: 'wgsparkl demos 2D',
// href: 'https://rapier.rs/demos2d/index.html',
// },
// {
// label: 'wgsparkl demos 3D',
// href: 'https://rapier.rs/demos3d/index.html',
// },
// ],
// },
{
title: 'Community',
items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/rapier',
// },
{
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/wgmath',
},
],
},
],
// 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/wgmath/edit/master/website/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
stylesheets: [
'https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.css'
]
};
export default config;