Skip to content

Commit 63fd11c

Browse files
author
chrisfarms
committed
use neutral theme for diagrams
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.
1 parent c00387f commit 63fd11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/govuk_tech_docs/tech_docs_html_renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def block_diagram(code)
4747
input_path = "#{tmp}/input"
4848
output_path = "#{tmp}/output.svg"
4949
File.open(input_path, "w") { |f| f.write(code) }
50-
ok = exec_with_timeout("#{mmdc} -i #{input_path} -o #{output_path}", 2)
50+
ok = exec_with_timeout("#{mmdc} -i #{input_path} -o #{output_path} --theme neutral", 2)
5151
if ok && File.exist?(output_path)
5252
File.read(output_path)
5353
else

0 commit comments

Comments
 (0)