[infra] mardown-lint: report missing tocstop (#1818)
This commit is contained in:
parent
d9f3e97a66
commit
354b0ac7ed
2
Makefile
2
Makefile
|
|
@ -101,6 +101,8 @@ markdown-toc:
|
||||||
if grep -q '<!-- tocstop -->' $$f; then \
|
if grep -q '<!-- tocstop -->' $$f; then \
|
||||||
echo markdown-toc: processing $$f; \
|
echo markdown-toc: processing $$f; \
|
||||||
npx --no -- markdown-toc --bullets "-" --no-first-h1 --no-stripHeadingTags -i $$f || exit 1; \
|
npx --no -- markdown-toc --bullets "-" --no-first-h1 --no-stripHeadingTags -i $$f || exit 1; \
|
||||||
|
elif grep -q '<!-- toc -->' $$f; then \
|
||||||
|
echo markdown-toc: ERROR: '<!-- tocstop -->' missing from $$f; exit 1; \
|
||||||
else \
|
else \
|
||||||
echo markdown-toc: no TOC markers, skipping $$f; \
|
echo markdown-toc: no TOC markers, skipping $$f; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue