Skip to content

Commit 9607909

Browse files
authored
Merge pull request #43 from mongodb-developer/update-docusaurus-3.7.0
Update docusaurus 3.7.0
2 parents fde6f58 + 3c83586 commit 9607909

File tree

6 files changed

+8432
-4448
lines changed

6 files changed

+8432
-4448
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4.1.0
1717
with:
1818
node-version: 20
1919
cache: npm

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

.husky/pre-push

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

docusaurus.config.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,7 @@ const config = {
124124
}),
125125
],
126126
],
127-
plugins: [
128-
[
129-
require.resolve("docusaurus-lunr-search"),
130-
{
131-
languages: ["en", "zh"], // language codes
132-
},
133-
],
134-
],
127+
plugins: [require.resolve("docusaurus-lunr-search")],
135128
themeConfig:
136129
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
137130
({
@@ -180,7 +173,17 @@ const config = {
180173
darkTheme: darkCodeTheme,
181174
additionalLanguages: ["powershell", "swift", "kotlin"],
182175
},
176+
mermaid: {
177+
theme: { light: "neutral", dark: "forest" },
178+
},
183179
}),
180+
future: {
181+
experimental_faster: true,
182+
},
183+
markdown: {
184+
mermaid: true,
185+
},
186+
themes: ["@docusaurus/theme-mermaid"],
184187
};
185188

186189
module.exports = config;

0 commit comments

Comments
 (0)