Collapsible Table of Contents (TOC) for AsciiDoc without external libraries and extensions. Uses a single docinfo.html file with a few lines of JavaScript and essential custom CSS.
-
Place the docinfo.html file in the same folder as your AsciiDoc file.
-
Add the following attribute to the header of the AsciiDoc file: :docinfo: shared
-
Use with: :toc: left and :toclevels: > 1