Skip to content

Commit 7461e3e

Browse files
committed
build_docs: conditional mermaid
1 parent 8ec33f3 commit 7461e3e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build_docs/linuxdocs.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,13 @@ if [ "$skippackagesoption" != "yes" ]; then
224224
export PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
225225
node --version
226226
npm --version
227-
npm install gulp-cli@2.3.0
228-
if grep -r mermaid "$BOOST_SRC_FOLDER/doc/"; then
229-
npm install @mermaid-js/mermaid-cli@10.5.1
227+
if ! which gulp; then
228+
npm install -g gulp-cli@2.3.0
229+
fi
230+
if ! which mmds; then
231+
if grep -r mermaid "$BOOST_SRC_FOLDER/doc/"; then
232+
npm install -g @mermaid-js/mermaid-cli@10.5.1
233+
fi
230234
fi
231235

232236
fi

0 commit comments

Comments
 (0)