📦 theme-mermaid
此主题提供了一个由 mermaid 提供支持的 @theme/Mermaid
组件。您可以在 图表 文档中了解更多信息。
- npm
- Yarn
- pnpm
npm install --save @docusaurus/theme-mermaid
yarn add @docusaurus/theme-mermaid
pnpm add @docusaurus/theme-mermaid
配置
docusaurus.config.js
export default {
themes: ['@docusaurus/theme-mermaid'],
// In order for Mermaid code blocks in Markdown to work,
// you also need to enable the Remark plugin with this option
markdown: {
mermaid: true,
},
};