From 89765673af7b102f07a2c605c89ec8eddc9a23fa Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 27 Dec 2016 16:36:39 -0800 Subject: [PATCH] Update verify TOC rules for index.md --- skip_toc_check.txt | 2 ++ verify-entry-toc.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/skip_toc_check.txt b/skip_toc_check.txt index eabcf6e724..e1a507b69a 100644 --- a/skip_toc_check.txt +++ b/skip_toc_check.txt @@ -1,3 +1,5 @@ # Put files you want to skip table of contents entry check here: docs/search.md docs/sitemap.md +docs/user-guide/pods/_viewing-a-pod.md +docs/user-guide/simple-yaml.md diff --git a/verify-entry-toc.sh b/verify-entry-toc.sh index 95ab757cda..7c0f13c518 100755 --- a/verify-entry-toc.sh +++ b/verify-entry-toc.sh @@ -7,6 +7,8 @@ no_entry=false for file in `find docs -name "*.md" -type f`; do if ! grep -q "${file}" skip_toc_check.txt; then path=${file%.*} + # abc/index.md should point to abc, not abc/index + path=${path%%index} if ! grep -q "${path}" _data/*.yml; then echo "Error: ${file} doesn't have an entry in the table of contents under _data/*.yml" no_entry=true