MermaidConfig
Configures the graph export inside the mermaid { } block - focus and exclude filters that keep a large graph's Mermaid/DOT diagram readable.
aalekh {
mermaid {
focus(":feature:checkout") // keep :feature:checkout and its immediate neighbours
depth(2) // ...growing out 2 hops instead of the default 1
exclude(":test:**") // drop test-only modules from the diagram
}
}Content copied to clipboard
With no focus/exclude declared the whole graph is exported, exactly as before. The filters drive aalekhMermaid; the diagram generators are unchanged - they simply receive a subset graph.