diff --git a/src/pages/mermaid/index.jsx b/src/pages/mermaid/index.jsx index f4400285..74aae5ea 100644 --- a/src/pages/mermaid/index.jsx +++ b/src/pages/mermaid/index.jsx @@ -13,36 +13,6 @@ const gitChart = `gitGraph commit commit ` - -const diagramChart = ` ---- -title: Animal example ---- -classDiagram - note "From Duck till Zebra" - Animal <|-- Duck - note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging" - Animal <|-- Fish - Animal <|-- Zebra - Animal : +int age - Animal : +String gender - Animal: +isMammal() - Animal: +mate() - class Duck{ - +String beakColor - +swim() - +quack() - } - class Fish{ - -int sizeInFeet - -canEat() - } - class Zebra{ - +bool is_wild - +run() - } -` - const Mermaid = () => ( <> @@ -50,9 +20,6 @@ const Mermaid = () => (

演示1:Git Diagram

- -

演示2:Class Diagram

-
)