Closed gabalafou closed 1 month ago
While working on this, I couldn't help but wonder if we should give some of this version loading machinery rethink. Could we get the versions at build time?
xref to #1822 which is touching the same code right now, FYI
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
src/pydata_sphinx_theme
translator.py
Project Total
This report was generated by python-coverage-comment-action
Ok, let's try this.
The banner animation felt a little funky to me, even after the improvements made in https://github.com/pydata/pydata-sphinx-theme/pull/1693.
My hunch is that because the two banners are stacked on top of each other and the height of one affects the layout/position of the other, trying to animate the height of both of them at the same time causes the browser to stutter. Or maybe it was just because they could each load at different but often only slightly offset times. Whatever the case, I decided to do a little code clean up and change it so that they both come in together.
In the process of working on this PR it also made sense to address a TODO, and add "Version warning" to the list of translatable strings.