Skip to content

Commit

Permalink
chore: enable-mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHieu01 committed Nov 21, 2023
1 parent 29dff69 commit 4b69933
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 2,634 deletions.
2 changes: 1 addition & 1 deletion docs/docs/new/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ Nitro welcomes contributions in various forms, not just coding. Here are some wa
## Acknowledgements

- [drogon](https://github.com/drogonframework/drogon): The fast C++ web framework
- [llama.cpp](https://github.com/ggerganov/llama.cpp): Inference of LLaMA model in pure C/C++
- [llama.cpp](https://github.com/ggerganov/llama.cpp): Inference of LLaMA model in pure C/C++
9 changes: 6 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const config = {
defaultLocale: "en",
locales: ["en"],
},

markdown: {
mermaid: true,
},

// Plugins we added
plugins: [
Expand All @@ -58,9 +62,6 @@ const config = {
],
],

// Only for react live
themes: ["@docusaurus/theme-live-codeblock"],

// The classic preset will relay each option entry to the respective sub plugin/theme.
presets: [
[
Expand Down Expand Up @@ -170,6 +171,8 @@ const config = {
respectPrefersColorScheme: false,
},
}),
// Only for react live
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
};

module.exports = config;
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@docusaurus/theme-live-codeblock": "^2.4.3",
"@docusaurus/theme-mermaid": "^3.0.0",
"@docusaurus/theme-mermaid": "^2.4.3",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@mdx-js/react": "^1.6.22",
"autoprefixer": "^10.4.16",
"axios": "^1.5.1",
"clsx": "^1.2.1",
"@docusaurus/plugin-content-docs": "2.4.3",
"docusaurus-plugin-redoc": "^2.0.0",
"docusaurus-plugin-sass": "^0.2.5",
"docusaurus-theme-redoc": "^2.0.0",
Expand Down
Loading

0 comments on commit 4b69933

Please sign in to comment.