docs: reorganize doc.md TOC into thematic groups (#4579)