diff --git a/docs/syntax/gitgraph.md b/docs/syntax/gitgraph.md index 80c0e72fe6..099d90e5e2 100644 --- a/docs/syntax/gitgraph.md +++ b/docs/syntax/gitgraph.md @@ -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 diff --git a/packages/mermaid/src/docs/syntax/gitgraph.md b/packages/mermaid/src/docs/syntax/gitgraph.md index d8da3eb279..e7ffe6b8b7 100644 --- a/packages/mermaid/src/docs/syntax/gitgraph.md +++ b/packages/mermaid/src/docs/syntax/gitgraph.md @@ -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