The automatically generated table of contents will show up whenever you have an article with 3 or more top-level headings in it. As a top-level heading is considered only the h2. Here's how to create one:

If you need a way to enable it manually, feel free to get in touch with us with a custom feature request.