Open your Google Docs document
Apply heading styles to the sections you want in the table of contents
Place your cursor where you want the table of contents to appear
Click Insert
Click Table of contents
Choose a format
The table of contents will be inserted
Update the table of contents after making changes by clicking it and selecting the refresh icon
