Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 22, 2024
1 parent cda9ee5 commit fc449c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/hardis/doc/project2markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Run \`npm install @mermaid-js/mermaid-cli --global\`
}
}
uxLog(this, c.green(`Successfully generated ${flowFiles.length - flowWarnings.length - flowErrors.length} Flows documentation`));
if (flowErrors.length > 0) {
if (flowWarnings.length > 0) {
uxLog(this, c.yellow(`Partially generated documentation (Markdown with mermaidJs but without SVG) for ${flowWarnings.length} Flows: ${flowWarnings.join(", ")}`));
}
if (flowErrors.length > 0) {
Expand Down
4 changes: 3 additions & 1 deletion src/common/utils/mermaidUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export async function generateMarkdownFileWithMermaid(outputFlowMdFile: string):
return true;
}
}
uxLog(this, c.yellow("Either mermaid-cli or docker is required to work to generate mermaidJs Graphs. Please install/fix one of them if you want to generate SVG diagrams."));
if (mermaidUnavailableTools.includes("cli") && mermaidUnavailableTools.includes("docker")) {
uxLog(this, c.yellow("Either mermaid-cli or docker is required to work to generate mermaidJs Graphs. Please install/fix one of them if you want to generate SVG diagrams."));
}
return false;
}

Expand Down

0 comments on commit fc449c5

Please sign in to comment.