mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 16:49:38 +02:00
Add documenation for git graph
This commit is contained in:
30
README.md
30
README.md
@@ -78,6 +78,36 @@ classDiagram
|
|||||||
<img src='./docs/img/class-diagram.png' alt='Example 3'>
|
<img src='./docs/img/class-diagram.png' alt='Example 3'>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
|
gitGraph :
|
||||||
|
options
|
||||||
|
{
|
||||||
|
"key": "value",
|
||||||
|
"nodeWidth": 150,
|
||||||
|
"nodeSpacing" : 150
|
||||||
|
}
|
||||||
|
end
|
||||||
|
commit
|
||||||
|
branch newbranch
|
||||||
|
checkout newbranch
|
||||||
|
commit
|
||||||
|
commit
|
||||||
|
checkout master
|
||||||
|
commit
|
||||||
|
commit
|
||||||
|
merge newbranch
|
||||||
|
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<img src='./docs/img/gitgraph.mm.png' alt='Example 4'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
## Further reading
|
## Further reading
|
||||||
|
BIN
docs/img/gitgraph.mm.png
Normal file
BIN
docs/img/gitgraph.mm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user