To add the page treeview, simply include the provided template in templates/navigation/sidebar-menu.html.twig
:
{% include 'navigation/markdownPages.html.twig' %}
See UserFrosting documentation for more details on how to add custom entries to the sidebar menu.