Annidare le sottocategorie Nest sotto le loro categorie principali nella barra laterale

It sounds as though your use case is more suited to discourse-docs than the sidebar.

You can see an example of the view and filtering it provides here Docs - Discourse Meta