/js-table-of-contents

JavaScript that constructs a Table of Contents based on the headings found in a HTML page.

MIT LicenseMIT

JS Table of Contents

This small tool lets you construct a table of contents dynamically from an HTML structure.

Goals

With this project I aim to have a small and easy-to-use tool that constructs a table of contents based on an HTML file. I want to both be able to insert a table of contents in the DOM at runtime, and insert it permanently by making a brand new HTML file with the table of contents included.

Installation

Describe in detail how to install the project, including prerequisite steps.

Usage

Describe how to use the project. Give one or more examples of both basic and advanced usage. If the project has a manual or a wiki, link to it here.

Licenses

JS Table of Contents is distributed under an MIT License. Read the full terms in the file LICENSE.