pydata-sphinx-theme
pydata-sphinx-theme copied to clipboard
Migrate version switcher JS from the jinja templates
On the version switcher PR that was recently merged I have requested some changes ( https://github.com/pydata/pydata-sphinx-theme/pull/436#discussion_r755515548) that we agreed it would be material for a follow-up PR. This is an issue to capture that idea and link the implementation when that one is written.
FWIW, this interfaces closely with https://github.com/pradyunsg/sphinx-basic-ng/issues/12 (where I'm trying to figure out a way to have agnostic-to-hosting version and language switchers).
Thanks for the reference, @pradyunsg. I will take at it soon!!
Related (since it involves moving JS from the templates into some other place): https://github.com/pydata/pydata-sphinx-theme/pull/28
Isn't it the case ? https://github.com/pydata/pydata-sphinx-theme/blob/adc8b1d7519ed164c5c5fec56dc958ac039de9c9/src/pydata_sphinx_theme/assets/scripts/index.js#L275
Yes, this is done!