mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
70f94c3e44
Updates the auto-generated warning to tell people to edit packages/mermaid/src/docs instead of src/docs.
844 B
844 B
THIS IS AN AUTOGENERATED FILE. DO NOT EDIT. Please edit the corresponding file in packages/mermaid/src/docs.
Breaking changes
Breaking changes from history version to latest version:
#1
mermaid.initialize({
sequenceDiagram:{
...
}
})
has been changed to
mermaid.initialize({
sequence:{
...
}
})
#2
In old versions you needed to reference a CSS file in your HTML:
<link rel="stylesheet" href="mermaid.min.css" />
or
<link rel="stylesheet" href="mermaid.forest.min.css" />
Now it is not needed, and there are no more CSS files in the distribution files.
You just:
mermaid.initialize({
theme: 'forest',
});
and it works like a charm because now the CSS is inline with the SVG to allow simpler portability.