Skip to content

Commit 0ad3e95

Browse files
committed
⬆️ Update docusaurus
1 parent 19d9b47 commit 0ad3e95

File tree

4 files changed

+30
-15
lines changed

4 files changed

+30
-15
lines changed

website/docusaurus.config.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
title: "chayns-toolkit",
44
tagline: "A zero-config toolchain for developing chayns® apps.",
5-
url: "https://tobitsoftware.github.io/chayns-toolkit",
5+
url: "https://tobitsoftware.github.io",
66
baseUrl: "/chayns-toolkit/",
77
onBrokenLinks: "warn",
88
onBrokenMarkdownLinks: "warn",
@@ -12,10 +12,6 @@ module.exports = {
1212
themeConfig: {
1313
colorMode: {
1414
respectPrefersColorScheme: true,
15-
switchConfig: {
16-
darkIcon: "🌑",
17-
lightIcon: "💡",
18-
},
1915
},
2016
navbar: {
2117
logo: {
@@ -40,11 +36,12 @@ module.exports = {
4036
copyright: `Copyright © ${new Date().getFullYear()} Tobit Software Laboratories AG. Built with Docusaurus.`,
4137
},
4238
prism: {
43-
theme: require("prism-react-renderer/themes/github"),
44-
darkTheme: require("prism-react-renderer/themes/oceanicNext"),
39+
theme: require("prism-react-renderer").themes.github,
40+
darkTheme: require("prism-react-renderer").themes.oceanicNext,
4541
},
4642
algolia: {
4743
apiKey: "d32ad728937f5e05637e7bcb70ae6171",
44+
appId: "BH4D9OD16A",
4845
indexName: "tobitsoftware",
4946
},
5047
},
@@ -55,8 +52,7 @@ module.exports = {
5552
docs: {
5653
sidebarPath: require.resolve("./sidebars.js"),
5754
// Please change this to your repo.
58-
editUrl:
59-
"https://github.com/TobitSoftware/chayns-toolkit/edit/main/docs/",
55+
editUrl: "https://github.com/TobitSoftware/chayns-toolkit/edit/main/docs/",
6056
},
6157
theme: {
6258
customCss: require.resolve("./src/css/custom.css"),

website/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
]
2727
},
2828
"dependencies": {
29-
"@docusaurus/core": "2.0.0-beta.3",
30-
"@docusaurus/preset-classic": "2.0.0-beta.3",
31-
"@mdx-js/react": "^1.6.22",
32-
"clsx": "^1.1.1",
33-
"react": "^17.0.2",
34-
"react-dom": "^17.0.2"
29+
"@docusaurus/core": "^3.7.0",
30+
"@docusaurus/preset-classic": "^3.7.0",
31+
"@mdx-js/react": "^3.1.0",
32+
"clsx": "^2.1.1",
33+
"prism-react-renderer": "^2.4.1",
34+
"react": "^18.3.1",
35+
"react-dom": "^18.3.1"
3536
}
3637
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react"
2+
3+
export default function DarkModeWrapper(props) {
4+
return (
5+
<span {...props} style={{ fontSize: 20, lineHeight: 1 }}>
6+
🌑
7+
</span>
8+
)
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react"
2+
3+
export default function LightModeWrapper(props) {
4+
return (
5+
<span {...props} style={{ fontSize: 20, lineHeight: 1 }}>
6+
💡
7+
</span>
8+
)
9+
}

0 commit comments

Comments
 (0)