Deki Wiki provides support for automatically creating a table of contents for a given page. To display a hierarchical list of all sections on the current page, edit the page and enter:
{{ page.toc }}
Example:
| |
You can also display a hierarchical list of all pages under the current page:
{{ wiki.tree(page.path, <depth>) }}
Where <depth> is an optional integer that specifies how many levels of the heirarchy to display; use a depth of 1 to only display the children of the current page. Example:
| |