From 816402c4a9500b1e0ffd4be38caadf6f40e4f2a2 Mon Sep 17 00:00:00 2001 From: Sarah French <15078782+SarahFrench@users.noreply.github.com> Date: Thu, 7 Mar 2024 23:17:34 +0000 Subject: [PATCH] Update docscheck.sh to accept provider function docs (#17497) (#17509) This script is a good candidate for being replaced with official tools, but for now updating this script to avoid false alarms about bad docs --- scripts/docscheck.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/docscheck.sh b/scripts/docscheck.sh index 078071b45a0..63ccc31a55f 100755 --- a/scripts/docscheck.sh +++ b/scripts/docscheck.sh @@ -27,6 +27,15 @@ for doc in $docs; do fi ;; + "functions") + # Functions require a page_title + grep "^page_title: " "$doc" > /dev/null + if [[ "$?" == "1" ]]; then + echo "Doc is missing a page_title: $doc" + error=true + fi + ;; + *) error=true echo "Unknown category \"$category\". " \