Stop maintaining README and docs contents lists by hand: how GitHub builds heading anchors, doctoc and remark-toc compared, a small dependency-free Node.js generator with a check mode, pre-commit and lint-staged hooks, a GitHub Actions job that fails on stale TOCs, and the options in MkDocs, Python-Markdown and Hugo.