In my previous PR, I copied code from https://github.com/phpDocumentor/guides/blob/main/packages/guides/resources/template/html/body/menu/table-of-content.html.twig That template has a different name than the one I copied the code into, so maybe it receives a different type of node? Anyway, I remembered how to actually build the docs and was able to create this version through trial and error rather than blindly copying code. But as you see, I do not fully understand what I am doing, hopefully somebody does.
In my previous PR, I copied code from https://github.com/phpDocumentor/guides/blob/main/packages/guides/resources/template/html/body/menu/table-of-content.html.twig That template has a different name than the one I copied the code into, so maybe it receives a different type of node? Anyway, I remembered how to actually build the docs and was able to create this version through trial and error rather than blindly copying code. But as you see, I do not fully understand what I am doing, hopefully somebody does.