No need to force TOC section title in CLI with doctoc 2.0.0.

See: https://github.com/thlorenz/doctoc/pull/145
This commit is contained in:
Kevin Deldycke 2020-12-07 12:13:39 +01:00
parent aa7c527b80
commit fab8fbd317
No known key found for this signature in database
GPG Key ID: C572BB01B1ED5A3A
2 changed files with 3 additions and 27 deletions

View File

@ -22,11 +22,7 @@ jobs:
- uses: actions/checkout@v2.3.4
- name: Generate full TOC
run: |
# Generates title as part of the TOC to avoid extra non-conform blank
# lines. See:
# https://github.com/thlorenz/doctoc/issues/101
# https://github.com/thlorenz/doctoc/pull/145
doctoc --github --title "## Contents" readme.md
doctoc --github readme.md
- name: Remove forbidden special TOC entries
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.16.0/rules
# /toc.js#L15-L18

View File

@ -22,30 +22,10 @@ subtleties.
In a sense, *Falsehood* articles are a suite of wordy unit-tests covering
extensive edge-cases provided by real-world usage.
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
## Contents
- [Meta](#meta)
- [Arts](#arts)
- [Business](#business)
- [Dates and Time](#dates-and-time)
- [Education](#education)
- [Emails](#emails)
- [Geography](#geography)
- [Human Identity](#human-identity)
- [Internationalization](#internationalization)
- [Management](#management)
- [Multimedia](#multimedia)
- [Networks](#networks)
- [Phone Numbers](#phone-numbers)
- [Postal Addresses](#postal-addresses)
- [Science](#science)
- [Society](#society)
- [Software Engineering](#software-engineering)
- [Typography](#typography)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- START doctoc -->
<!-- END doctoc -->
## Meta