Skip to content

Commit

Permalink
Revert #3475
Browse files Browse the repository at this point in the history
Was an accidental merge.
  • Loading branch information
sidharthv96 committed Sep 20, 2022
1 parent 00c1732 commit b72dad9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 40 deletions.
17 changes: 15 additions & 2 deletions docs/classDiagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -660,14 +660,27 @@ It is also possible to attach a class to a list of nodes in one statement:

A shorter form of adding a class is to attach the classname to the node using the `:::` operator:

```mmd
```mermaid-example
classDiagram
class Animal:::cssClass
```

```mermaid
classDiagram
class Animal:::cssClass
```

Or:

```mmd
```mermaid-example
classDiagram
class Animal:::cssClass {
-int sizeInFeet
-canEat()
}
```

```mermaid
classDiagram
class Animal:::cssClass {
-int sizeInFeet
Expand Down
38 changes: 0 additions & 38 deletions docs/gitgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,44 +393,6 @@ Let see an example:
commit id:"C"
```

By default, the cherry-picked commit from commit with id `A` will be labeled `cherry-pick:A`. You can provide your own custom tag instead to override this behavior, using the same syntax as the `commit` keyword:

```mermaid-example
gitGraph
commit id: "ZERO"
branch develop
commit id:"A"
checkout main
commit id:"ONE"
checkout develop
commit id:"B"
checkout main
commit id:"TWO"
cherry-pick id:"A" tag:"fix"
commit id:"THREE"
checkout develop
commit id:"C"
```

```mermaid
gitGraph
commit id: "ZERO"
branch develop
commit id:"A"
checkout main
commit id:"ONE"
checkout develop
commit id:"B"
checkout main
commit id:"TWO"
cherry-pick id:"A" tag:"fix"
commit id:"THREE"
checkout develop
commit id:"C"
```

To suppress the tag entirely, use `tag:""` (empty string).

## Gitgraph specific configuration options

In Mermaid, you have the option to configure the gitgraph diagram. You can configure the following options:
Expand Down
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> -->
<link rel="stylesheet" href="theme.css" />
<link
rel="stylesheet"
Expand Down

0 comments on commit b72dad9

Please sign in to comment.