Fix TOC links in API documentation

Fixes #245.