mirror of
https://github.com/kdeldycke/awesome-falsehood.git
synced 2025-07-31 22:03:11 -04:00
Sync list of forbidden TOC entries.
This commit is contained in:
parent
47d793f8ba
commit
9773c03bdb
1 changed files with 3 additions and 3 deletions
6
.github/workflows/autofix.yaml
vendored
6
.github/workflows/autofix.yaml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue