Here's how to do it:
- Open the Confluence page where you want the Index.
- Type "/table of contents" anywhere on the page, then select it from the menu to insert.
- Customize basic settings by selecting “Basic” in the right-side panel.
- For more control, click the 'Advanced' tab where you can set indent headings.