Here's a step-by-step walkthrough on how to add table of contents in Confluence
1. Go to your desired page and click on the plus icon on the tool bar.


3. The table of contents is added and you can change it's settings on the sidebar.

That's it! You have successfully added table of contents in Confluence!