Skip to content

Commit

Permalink
Updates hack/verify-capi-book-summary.sh
Browse files Browse the repository at this point in the history
This change updates verify-capi-book-summary.sh to exclude
'code-examples.md' from the summary.
  • Loading branch information
theobarberbany committed Sep 25, 2024
1 parent bfb4ec8 commit bf3376a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/verify-capi-book-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RESULT=0
SUMMARY=$(cat ./docs/book/src/SUMMARY.md)

pushd ./docs/book/src > /dev/null
FILES=$(find -- * -name "*.md" ! -name "SUMMARY.md")
FILES=$(find -- * -name "*.md" ! -name "SUMMARY.md" ! -name "code-examples.md")
while read -r file; do
if ! [[ $SUMMARY == *"${file}"* ]]; then
RESULT=1
Expand All @@ -35,4 +35,4 @@ while read -r file; do
done <<< "${FILES}"
popd > /dev/null

exit ${RESULT}
exit ${RESULT}

0 comments on commit bf3376a

Please sign in to comment.