Skip to content

Commit

Permalink
customize the mermaid theme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Feb 8, 2024
1 parent 17e18d6 commit 5c686f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions filter/mermaid-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"theme": "base",
"themeVariables": {
"fontFamily": "arial",
"primaryColor": "#fff",
"secondaryColor": "#233c82",
"tertiaryColor": "#99C455",
"primaryTextColor": "#000",
"primaryBorderColor": "#000"
}
}

0 comments on commit 5c686f5

Please sign in to comment.