Skip to content

Commit

Permalink
docs: Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Feb 27, 2024
1 parent cbb715a commit 370cd98
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 54 deletions.
88 changes: 52 additions & 36 deletions docs/syntax/gitgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -923,53 +923,69 @@ Commits in Mermaid display temporal information in gitgraph by default. For exam
### Temporal Commits (default, `parallelCommits: false`)

```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: false
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

```mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: false
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

### Parallel commits (`parallelCommits: true`)

```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: true
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

```mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: true
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

## Themes
Expand Down
44 changes: 26 additions & 18 deletions packages/mermaid/src/docs/syntax/gitgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,29 +576,37 @@ Commits in Mermaid display temporal information in gitgraph by default. For exam
### Temporal Commits (default, `parallelCommits: false`)

```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: false
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

### Parallel commits (`parallelCommits: true`)

```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%%
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
---
config:
gitGraph:
parallelCommits: true
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
```

## Themes
Expand Down

0 comments on commit 370cd98

Please sign in to comment.