Table of Content
Having a table of content in above of a page never has been so easy to creat. Just include each topic in an ol
tag and add .toc
class to it; theDocs will take care of other parts!
Check the following example...
<ol class="toc">
<li>
<a href="#">First topic</a>
<ol>
<li><a href="#">Sub topic</a></li>
<li>
<a href="#">Sub topic</a>
<ol>
<li><a href="#">Sub-sub topic</a></li>
<li><a href="#">Sub-sub topic</a></li>
</ol>
</li>
<li><a href="#">Sub topic</a></li>
</ol>
</li>
<li><a href="#">Second topic</a></li>
<li><a href="#">Third topic</a></li>
<li><a href="#">Fourth topic</a></li>
</ol>