docs: Fix config

This commit is contained in:
Sidharth Vinod 2024-02-27 15:29:41 +05:30
parent cbb715a44d
commit 370cd98d23
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 78 additions and 54 deletions

View File

@ -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

View File

@ -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