Widgets:

Table of Content Widget

By default, Table of Content is added into the content or using the shortcode. But, if you want, you can add a table of contents to the sidebar using the widget.