Updates check-for-empty-title-tag description

This commit is contained in:
Igor Kuzmenko 2017-07-19 13:03:21 +02:00
parent d0ada511d0
commit 694ae9e556

View file

@ -184,9 +184,8 @@ check-for-headers-containing-auto-link:
$S grep '<\(h[2-6]\).*\?>[^>]\+class="auto-link".*</\1>' _site/en/developer-* | eval $(ERROR_ON_OUTPUT) $S grep '<\(h[2-6]\).*\?>[^>]\+class="auto-link".*</\1>' _site/en/developer-* | eval $(ERROR_ON_OUTPUT)
check-for-empty-title-tag: check-for-empty-title-tag:
## The autocrossref plugin can mess up subheadings (h2, etc), so ensure ## This checks whether all generated pages have a title tag with
## none of the generated subheadings contain the string ## content
## 'class="auto-link"' produced by autocrossref
$S find ./_site -name '*.html' -type f \ $S find ./_site -name '*.html' -type f \
| xargs grep '<title></title>' \ | xargs grep '<title></title>' \
| eval $(ERROR_ON_OUTPUT) | eval $(ERROR_ON_OUTPUT)
@ -198,13 +197,6 @@ check-for-missing-subhead-links:
| egrep -v 'developer-documentation|<h[2-6]|^--|subhead-links' \ | egrep -v 'developer-documentation|<h[2-6]|^--|subhead-links' \
| eval $(ERROR_ON_OUTPUT) | eval $(ERROR_ON_OUTPUT)
check-for-missing-subhead-links:
## Make sure each subhead (h2-h6) either has the subhead links
## (edit,issue,etc) or something like <!-- no subhead-links here -->
$S egrep -n -A1 '<h[2-6]' _site/en/developer-* \
| egrep -v 'developer-documentation|<h[2-6]|^--|subhead-links' \
| eval $(ERROR_ON_OUTPUT)
check-for-wrong-filename-assignments: check-for-wrong-filename-assignments:
## Make sure whenever we use {% assign filename="some-file" %} that the ## Make sure whenever we use {% assign filename="some-file" %} that the
## filename assignment matches the actual filename. This will, in ## filename assignment matches the actual filename. This will, in