Update verify TOC rules for index.md

This commit is contained in:
Janet Kuo
2016-12-27 16:36:39 -08:00
parent 2f16fce28b
commit 89765673af
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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