Creates a table of contents automatically using Bootstrap Collapse panels.