Skip to content

Commit 17227d3

Browse files
committed
doc: skip toc check for site
Signed-off-by: Wei Zhang <[email protected]>
1 parent 9aa35c5 commit 17227d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/update-toc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export PATH="${TMP_DIR}:${PATH}"
4444
cd "${ROOT}"
4545

4646
# Update tables of contents if necessary.
47-
find . -name '*.md' -not -path "./vendor/*" -not -path "./pkg/*" \
47+
find . -name '*.md' -not -path "./vendor/*" -not -path "./pkg/*" -not -path "./site/*" \
4848
| grep -Fxvf hack/.notableofcontents \
4949
| xargs mdtoc --inplace --max-depth=5 || (
5050
echo "Failed generating TOC. If this failed silently and you are on mac, try 'brew install grep'"

hack/verify-toc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cd "${ROOT}"
4444

4545
echo "Checking table of contents are up to date..."
4646
# Verify tables of contents are up-to-date
47-
find . -name '*.md' -not -path "./vendor/*" -not -path "./pkg/*" \
47+
find . -name '*.md' -not -path "./vendor/*" -not -path "./pkg/*" -not -path "./site/*" \
4848
| grep -Fxvf hack/.notableofcontents \
4949
| xargs mdtoc --inplace --max-depth=5 --dryrun || (
5050
echo "Table of content not up to date. If this failed silently and you are on mac, try 'brew install grep'"

0 commit comments

Comments
 (0)