Skip to content

Commit

Permalink
Merge pull request #43 from mongodb-developer/update-docusaurus-3.7.0
Browse files Browse the repository at this point in the history
Update docusaurus 3.7.0
  • Loading branch information
dfreniche authored Jan 29, 2025
2 parents fde6f58 + 3c83586 commit 9607909
Show file tree
Hide file tree
Showing 6 changed files with 8,432 additions and 4,448 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4.1.0
with:
node-version: 20
cache: npm
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run build
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run build
19 changes: 11 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,7 @@ const config = {
}),
],
],
plugins: [
[
require.resolve("docusaurus-lunr-search"),
{
languages: ["en", "zh"], // language codes
},
],
],
plugins: [require.resolve("docusaurus-lunr-search")],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down Expand Up @@ -180,7 +173,17 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ["powershell", "swift", "kotlin"],
},
mermaid: {
theme: { light: "neutral", dark: "forest" },
},
}),
future: {
experimental_faster: true,
},
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
};

module.exports = config;
Loading

0 comments on commit 9607909

Please sign in to comment.