From 17e83c1707aff764c01934972710b39d989a5088 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 11 Nov 2019 12:29:51 +0100 Subject: [PATCH] :art: Ensure summary is rebuild on tree change --- scripts/mdr2mdbook.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/mdr2mdbook.sh b/scripts/mdr2mdbook.sh index 968804b1..d5618015 100644 --- a/scripts/mdr2mdbook.sh +++ b/scripts/mdr2mdbook.sh @@ -38,8 +38,10 @@ runall() { done } -if [ $1 ] -#then [[ $1 == *".mdr" ]] && doc2src $1 -then [ -f $1 ] && doc2src $1 +if [[ "$1" == *".mdr" ]] + then doc2src $1 + if [ "$(git status -s | grep docs)" ] + then sh scripts/summary.sh > src/SUMMARY.md + fi else runall fi -- 2.43.0