pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
557 stars 300 forks source link

Try to avoid rely on on html.replace in toctree.py #1882

Closed Carreau closed 1 week ago

Carreau commented 2 weeks ago

We likely don't need to replace now that boilerplate have arguments. We can just slice links_html into solo and dropdown link and format differently.

_Originally posted by @Carreau in https://github.com/pydata/pydata-sphinx-theme/pull/1866#discussion_r1637859164_