Skip to main content
Version: 3.6.1

📦 theme-mermaid

该主题提供了由 mermaid 提供支持的 @theme/Mermaid 组件。你可以阅读有关 diagrams 文档的更多信息。

¥This theme provides a @theme/Mermaid component that is powered by mermaid. You can read more on diagrams documentation.

npm install --save @docusaurus/theme-mermaid

配置

¥Configuration

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,
},
};