-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove duplicated arrow + custom style for donate button * fix hot reload More info at facebook/docusaurus#9698 * update to yarn 4 + update math dependencies deps remark-math and rehype-katex updated * fix crossplatform inject * more thorough ci test, which now can run `yarn build`
- Loading branch information
Showing
11 changed files
with
26,989 additions
and
10,503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
const math = require('remark-math') | ||
const katex = require('rehype-katex') | ||
|
||
module.exports = { | ||
const config = { | ||
title: 'Rapier', | ||
tagline: 'Fast 2D and 3D physics engine for the Rust programming language.', | ||
url: 'https://rapier.rs', | ||
baseUrl: '/', | ||
onBrokenLinks: 'error', // 'throw', | ||
onBrokenLinks: 'throw', | ||
favicon: 'img/favicon.png', | ||
organizationName: 'dimforge', // Usually your GitHub org/user name. | ||
projectName: 'rapier', // Usually your repo name. | ||
themeConfig: { | ||
algolia: { | ||
apiKey: '2fb2392fe420e3f9cd94004bda27a775', | ||
appId: 'rapier', | ||
indexName: 'rapier', | ||
}, | ||
prism: { | ||
theme: require('prism-react-renderer/themes/github'), | ||
theme: require('prism-react-renderer').themes.github, | ||
additionalLanguages: ['toml', 'rust'], | ||
}, | ||
// announcementBar: { | ||
|
@@ -44,13 +45,11 @@ module.exports = { | |
items: [ | ||
{ | ||
href: 'https://rapier.rs/demos2d/index.html', // FIXME: should depend on the base url. | ||
label: '2D Demos ↪', | ||
position: 'left', | ||
label: '2D Demos', | ||
}, | ||
{ | ||
href: 'https://rapier.rs/demos3d/index.html', // FIXME: should depend on the base url. | ||
label: '3D Demos ↪', | ||
position: 'left', | ||
label: '3D Demos', | ||
} | ||
], | ||
}, | ||
|
@@ -62,18 +61,18 @@ module.exports = { | |
}, | ||
{ | ||
href: 'https://dimforge.com/blog', | ||
label: 'Blog ↪', | ||
label: 'Blog', | ||
position: 'left', | ||
}, | ||
{ | ||
href: 'https://github.com/sponsors/dimforge', | ||
label: 'Donate ♥', | ||
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', | ||
className: 'header-button-donate' | ||
type: 'html' | ||
}, | ||
{ | ||
href: 'https://dimforge.com', | ||
label: 'Dimforge ↪', | ||
label: 'Dimforge', | ||
position: 'right', | ||
}, | ||
{ | ||
|
@@ -101,11 +100,11 @@ module.exports = { | |
to: 'docs/', | ||
}, | ||
{ | ||
label: 'Demos 2D ↪', | ||
label: 'Demos 2D', | ||
href: 'https://rapier.rs/demos2d/index.html', | ||
}, | ||
{ | ||
label: 'Demos 3D ↪', | ||
label: 'Demos 3D', | ||
href: 'https://rapier.rs/demos3d/index.html', | ||
}, | ||
], | ||
|
@@ -182,3 +181,5 @@ module.exports = { | |
'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css' | ||
] | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.