I think we need to split this function to not return html but just the necessary bits to generate the html for the navs, and have separate functions to generate navs in different place instead of messing with html strings.
We should also make it clearer function are exposed to end users of the theme.
I think we need to split this function to not return html but just the necessary bits to generate the html for the navs, and have separate functions to generate navs in different place instead of messing with html strings.
We should also make it clearer function are exposed to end users of the theme.
_Originally posted by @Carreau in https://github.com/pydata/pydata-sphinx-theme/pull/1771#discussion_r1570427730_