shadcn-docs-nuxt
Version:
Effortless and beautiful docs template built with Nuxt Content & shadcn-vue.
25 lines (22 loc) • 438 B
text/typescript
import { defineNuxtPlugin } from '#app';
import mermaid from 'mermaid';
export default defineNuxtPlugin(() => {
mermaid.initialize({
startOnLoad: false,
theme: 'default',
flowchart: {
curve: 'basis',
useMaxWidth: true,
htmlLabels: true,
},
sequence: {
actorMargin: 50,
showSequenceNumbers: false,
},
});
return {
provide: {
mermaidInstance: mermaid,
},
};
});