There was an error while loading. Please reload this page.
1 parent c3bcd2b commit c15f6f0Copy full SHA for c15f6f0
1 file changed
lib/tasks/job.thor
@@ -31,7 +31,13 @@ class Job < Thor
31
File.open(mmd_path, "w") { |f| f << mermaid }
32
33
pdf_path = File.join(mmd_dir, "#{job}.pdf")
34
- `mmd-cli -i #{mmd_path} -o #{pdf_path} -f`
+
35
+ configpath = Kiba::Extend::ProjectConfig.mermaid_config_path
36
+ if configpath
37
+ `mmd-cli -i #{mmd_path} -o #{pdf_path} -f -c #{configpath}`
38
+ else
39
+ `mmd-cli -i #{mmd_path} -o #{pdf_path} -f`
40
+ end
41
42
`open #{pdf_path}`
43
exit(0)
0 commit comments