From 5c686f5493339dc93f7d62821f19828da0e836b5 Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Wed, 7 Feb 2024 19:51:08 -0800 Subject: [PATCH] customize the mermaid theme --- build.sh | 4 ++-- filter/mermaid-config.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 filter/mermaid-config.json diff --git a/build.sh b/build.sh index 1d54664..561999f 100755 --- a/build.sh +++ b/build.sh @@ -352,7 +352,7 @@ echo "Date (English): ${DATE_ENGLISH}" # * DISABLING 'markdown_in_html_blocks' which breaks the ability to embed tables in HTML form. FROM="markdown+gfm_auto_identifiers+fenced_divs+implicit_figures+multiline_tables+grid_tables+table_captions-markdown_in_html_blocks" -export MERMAID_FILTER_THEME="forest" +cp /resources/filters/mermaid-config.json .mermaid-config.json export MERMAID_FILTER_FORMAT="pdf" export MERMAID_FILTER_BACKGROUND="transparent" @@ -649,7 +649,7 @@ fi # on success remove this output rm -f core -rm -f mermaid-filter.err +rm -f mermaid-filter.err .mermaid-config.json rm -f .puppeteer.json rm -f "${build_dir}/${input_file}.bak" rm -f *.temp.pdf diff --git a/filter/mermaid-config.json b/filter/mermaid-config.json new file mode 100644 index 0000000..21cc7cc --- /dev/null +++ b/filter/mermaid-config.json @@ -0,0 +1,11 @@ +{ + "theme": "base", + "themeVariables": { + "fontFamily": "arial", + "primaryColor": "#fff", + "secondaryColor": "#233c82", + "tertiaryColor": "#99C455", + "primaryTextColor": "#000", + "primaryBorderColor": "#000" + } +}