eMI TOC Generator
Developer: | eMedia Intellect |
---|---|
Initial release: | |
Stable release: | 3.1 () |
Written in: | ECMAScript (UTF-8) |
Operating system: | Cross-platform |
Size: | 28646 bytes |
Development status: | Active |
Available in: | English, Icelandic, Spanish |
Type: | Table of contents generator |
Licence: | GNU GPLv3 |
Download: | github.com root.emi.is |
eMI TOC Generator is a simple cross-platform library that dynamically generates a table of contents (TOC) in an HTML 5 page on rendering.
Overview
The library traverses a page from a specified starting position to its end and inserts a TOC at the starting position. Level one headings (h1) are ignored as it is recommended that only a single level one heading be present in a page and a TOC should not appear before the first and only level one heading. By convention, a TOC is placed after the top level heading and introductory paragraph of a page.
Directory contents
- eMI-TOC-Generator directory
- Library directory
- TableOfContents.css file
- TableOfContents.es file
- TableOfContents-minified.es file
- Testing directory
- gpl-3.0.txt file
- Library directory
Library directory
The Library directory contains the ECMAScript library.
TableOfContents.css file
The TableOfContents.css file provides the styling of the table of contents.
TableOfContents.es file
The TableOfContents.es file provides the TOC generator.
TableOfContents-minified.es file
The TableOfContents-minified.es file is the minified version of the TableOfContents.es file. The minification was achieved using the UglifyJS 3 tool.
Testing directory
The Testing directory contains files used for testing the solution during development.
Authorship
Stefán Örvar Sigmundsson, programmer
Licence
eMI TOC Generator by eMedia Intellect is licensed under GNU General Public License version 3.