Skip to content

Commit

Permalink
use neutral theme for diagrams
Browse files Browse the repository at this point in the history
the deafult mermaid themes for diagrams don't quite fit the GOV.UK
"brand" colors, and creating the CSS to get the colors pretty is out of
scope, so this just sets it to use the "neutral" (grayscale) theme,
which at least doesn't clash with anything.
  • Loading branch information
chrisfarms committed May 5, 2020
1 parent c00387f commit 63fd11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govuk_tech_docs/tech_docs_html_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def block_diagram(code)
input_path = "#{tmp}/input"
output_path = "#{tmp}/output.svg"
File.open(input_path, "w") { |f| f.write(code) }
ok = exec_with_timeout("#{mmdc} -i #{input_path} -o #{output_path}", 2)
ok = exec_with_timeout("#{mmdc} -i #{input_path} -o #{output_path} --theme neutral", 2)
if ok && File.exist?(output_path)
File.read(output_path)
else
Expand Down

0 comments on commit 63fd11c

Please sign in to comment.