Skip to content
Snippets Groups Projects
Commit d4da3bc3 authored by Jan Frenzel's avatar Jan Frenzel
Browse files

Update version of mermaid

Obviously, different versions of mkdocs require different mermaid versions.
parent bd9b2525
No related branches found
No related tags found
2 merge requests!1182Automated merge from preview to main,!1177Update version of mermaid
......@@ -40,7 +40,8 @@ function is_wordlist_sorted(){
}
function should_skip_file(){
local result="$(git check-attr check-spelling -- "$1")"
local result
result="$(git check-attr check-spelling -- "$1")"
test "${result#*: check-spelling: }" = "unset"
}
......@@ -83,7 +84,12 @@ function is_mistake_count_increased_by_changes(){
source_hash=`git merge-base HEAD "${branch}"`
#Remove everything except lines beginning with --- or +++
files=`git diff ${source_hash} -- '*.md' | sed -E -n 's#^(---|\+\+\+) ((/|./)[^[:space:]]+)$#\2#p'`
files=$(git diff ${source_hash} -- '*.md' \
| sed -E -n 's#^(---|\+\+\+) ((/|./)[^[:space:]]+)$#\2#p')
#Special case: when ${files} is empty, we need to prevent the failure at 'read newfile'
if [[ -z "${files}" ]]; then
return 0
fi
#echo "${files}"
#echo "-------------------------"
#Assume that we have pairs of lines (starting with --- and +++).
......
......@@ -6,4 +6,4 @@ scriptpath=${BASH_SOURCE[0]}
basedir=`dirname "${scriptpath}"`
basedir=`dirname "${basedir}"`
cd ${basedir}/tud_theme/javascripts
wget https://unpkg.com/mermaid@9.4.0/dist/mermaid.min.js
wget https://unpkg.com/mermaid@11.4.1/dist/mermaid.min.js
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment