Technical

Table of Contents: Make Long Docs Navigable

Users scan TOCs to decide what to read. Generate them automatically.

By Chandler Supple1 min read

Tables of contents make long documents navigable. According to Nielsen Norman Group, users scan TOCs to decide what to read. Well-structured TOCs improve usability dramatically and boost SEO with rich snippets.

TOC Best Practices

GuidelineWhy
Include H2 and H3 onlyDeeper levels clutter without value
Show hierarchy via indentationVisual structure aids scanning
Link every entryReaders expect clickable navigation
Use descriptive headings"API Authentication" beats "Introduction"

Auto-Generation Tools

ToolBest For
markdown-tocMarkdown files
DocusaurusDocumentation sites
Tocbot (JS)Dynamic web pages
Hugo/JekyllStatic sites

Common Mistakes

  • Manual TOCs (become outdated instantly)
  • Generic headings ("Overview" tells nothing)
  • Including every H4-H6 (overwhelming)
  • Broken anchor links (test every entry)

FAQ

How deep should TOC go?

Three levels maximum. H2, H3, and occasionally H4. More creates noise.

When to skip TOC?

Documents under 5 pages don't need one. Scale TOC detail to document length.

Can AI help?

Yes, River's TOC Generator creates linked tables of contents from your headings automatically.

Chandler Supple

Co-Founder & CTO at River

Chandler spent years building machine learning systems before realizing the tools he wanted as a writer didn't exist. He founded River to close that gap. In his free time, Chandler loves to read American literature, including Steinbeck and Faulkner.

Ready to write better, faster?

Try River's AI-powered document editor for free.

Get Started Free →