This extension is capable of generating a Table of Contents for a document (including it's sub documents).
Further developent plans are here.
demo-0.1.0.mov
Simply run npm install
and than npm run build
to generate the .craftX file which can be installed.
You can use npm run dev
to test and debug in your local environment
To learn more about Craft eXtensions visit the Craft X developer portal.