build_docs: conditionally install mermaid

This commit is contained in:
sdarwin
2026-02-04 12:08:53 -07:00
parent 3ccdc92a3b
commit f151ddc8b9
3 changed files with 11 additions and 4 deletions

View File

@@ -217,8 +217,9 @@ if [ "$skippackagesoption" != "yes" ]; then
node --version
npm --version
npm install gulp-cli@2.3.0
npm install @mermaid-js/mermaid-cli@10.5.1
if grep -r mermaid "$BOOST_SRC_FOLDER/doc/"; then
npm install @mermaid-js/mermaid-cli@10.5.1
fi
fi
if [ "$typeoption" = "cppalv1" ]; then

View File

@@ -267,7 +267,9 @@ if [ "$skippackagesoption" != "yes" ]; then
node --version
npm --version
npm install gulp-cli@2.3.0
npm install @mermaid-js/mermaid-cli@10.5.1
if grep -r mermaid "$BOOST_SRC_FOLDER/doc/"; then
npm install @mermaid-js/mermaid-cli@10.5.1
fi
fi
brew install ruby

View File

@@ -417,7 +417,11 @@ if ( -Not ${skip-packages} ) {
}
npm install gulp-cli@2.3.0
npm install @mermaid-js/mermaid-cli@10.5.1
# need to check this code:
if (Get-ChildItem -Path "$BOOST_SRC_FOLDER/doc/" -Recurse -File | Select-String -Pattern "mermaid" -Quiet) {
npm install @mermaid-js/mermaid-cli@10.5.1
}
}