AguaClara / aguaclara_tutorial

This repository is for all team members to find information and tutorials about useful tools like Python, Atom, Hydrogen, GitHub, and report writing.
https://aguaclara.github.io/aguaclara_tutorial/
3 stars 75 forks source link

Make Drop-Down Folders in Table of Contents #32

Closed IanCullings closed 6 years ago

IanCullings commented 6 years ago

Find a way to edit table of contents file to allow folders to drop down, reducing clutter.

oliver-leung commented 6 years ago

This is done; unfortunately, I had to change the formatting for _Sidebar.md to HTML, but it's pretty straightforward.

To make a dropdown, you use the following HTML elements:

<details>
  <summary>
    <a href="Link goes here">Top-level dropdown title</a>
  </summary>
  <ul> <!-- To make more elements, copy the <li> ... </li> and everything between them, and paste it after the last </li>. -->
    <li>
      <a href="Link goes here">Dropdown element name</a>
    </li>
  </ul>
</details>