Sync list of forbidden TOC entries.

This commit is contained in:
Kevin Deldycke
2020-10-16 16:51:56 +02:00
committed by GitHub
parent 47d793f8ba
commit 9773c03bdb

View File

@@ -26,10 +26,10 @@ jobs:
# https://github.com/thlorenz/doctoc/issues/101
# https://github.com/thlorenz/doctoc/pull/145
doctoc --github --title "## Contents" readme.md
- name: Remove blacklisted TOC entries
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.13.0/rules/toc.js#L15-L20
- name: Remove forbidden special TOC entries
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.16.0/rules/toc.js#L15-L18
run: |
gawk -i inplace '!/^- \[(Contribute|Contributing|Licence|License|Footnotes)\]\(#.+\)$/{print}' ./readme.md
gawk -i inplace '!/^- \[(Contributing|Footnotes)\]\(#.+\)$/{print}' ./readme.md
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4.6.0
with: