docs: Fix config

This commit is contained in:
Sidharth Vinod
2024-02-27 15:29:41 +05:30
parent cbb715a44d
commit 370cd98d23
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`) ### Temporal Commits (default, `parallelCommits: false`)
```mermaid-example ```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: false
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
```mermaid ```mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: false
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
### Parallel commits (`parallelCommits: true`) ### Parallel commits (`parallelCommits: true`)
```mermaid-example ```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: true
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
```mermaid ```mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: true
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
## Themes ## Themes

View File

@@ -576,29 +576,37 @@ Commits in Mermaid display temporal information in gitgraph by default. For exam
### Temporal Commits (default, `parallelCommits: false`) ### Temporal Commits (default, `parallelCommits: false`)
```mermaid-example ```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': false}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: false
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
### Parallel commits (`parallelCommits: true`) ### Parallel commits (`parallelCommits: true`)
```mermaid-example ```mermaid-example
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'parallelCommits': true}} }%% ---
gitGraph: config:
commit gitGraph:
branch develop parallelCommits: true
commit ---
commit gitGraph:
checkout main commit
commit branch develop
commit commit
commit
checkout main
commit
commit
``` ```
## Themes ## Themes