How to automatically generate a table of contents for a list of nodes?
You can make use of the attachment display in Views.


Create your normal view
Add an attachment display to that view:





Set "Attach to" to your normal view display
Configure the attachment display to show titles of your content types nodes.