File: update_toc

package info (click to toggle)
node-wikibase-cli 15.15.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,940 kB
  • sloc: javascript: 4,531; sh: 26; makefile: 7
file content (8 lines) | stat: -rwxr-xr-x 309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash
which doctoc > /dev/null || {
  echo "requires to have https://www.npmjs.com/package/doctoc installed, either globally or just in this repo"
  echo "(it is not installed as a dev dependency as the use made of it is not worth the subdependencies maintainance)"
  exit 1
}

doctoc docs/*.md