Skip to content

Commit 94ed79c

Browse files
committed
Updated docusaurus 3.7.0, added husky pre-commit hook
1 parent fde6f58 commit 94ed79c

File tree

5 files changed

+8432
-4449
lines changed

5 files changed

+8432
-4449
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-push

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

docusaurus.config.js

+12-9
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const footerLinks = [
6868
{
6969
href: `https://github.com/${organizationName}/${workshopName}`,
7070
label: "This lab in GitHub",
71-
},
71+
}
7272
{
7373
label: ${new Date().getFullYear()} MongoDB, Inc.`,
7474
href: "#",
@@ -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)