generated from technote-space/gh-actions-template
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
Describe the bug
Files with <!-- DOCTOC SKIP --> at top are not skipped.
To Reproduce
-
add a markdown file like Home.md with <!-- DOCTOC SKIP --> as the first line
-
use following for .github/workflows/toc.yml:
on: push
name: TOC Generator
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v4
with:
TARGET_PATHS: "."
- push to github
- TOCs are added to all .md files, including Home.md
Expected behavior:
A TOC is not automatically added to Home.md
Additional context:
running
doctoc .
from the local clone produces the expected behavior, indicating that the comment tag is inserted correctly.
Maybe there is a difference is doctoc versions? Or I'm doing it wrong?
Edited toc.yml above, tested with both v3 and v4.
Metadata
Metadata
Assignees
Labels
No labels