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

Refactor navbar generating function #1780

Closed Carreau closed 1 month ago

Carreau commented 2 months ago

Should fix #1773

This try to split the function into two parts: one that wrangle the data, one that generate html.

The generating the data part should be cacheable, while the other can be made more flexible to be reusable in different part of the theme (typically generating or not dropdowns in the sidebar or navbar).

github-actions[bot] commented 1 month ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pydata_sphinx_theme
  toctree.py 215-216
Project Total  

This report was generated by python-coverage-comment-action