-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to dev version + update versions in switcher.json #574
Bump to dev version + update versions in switcher.json #574
Conversation
Highlighting this comment from another PR: #576 (comment) |
df41a7a
to
9befb6c
Compare
I rebased on master and pushed a commit that:
|
When I check for the class on the RTD deployment of this PR, I do not see "dev" the extra class... @choldgraf, can you confirm this is the case for you as well? |
But the json is not deployed. This is the issue no? Or are you checking by manually pointing to this PR's json? |
You are right... I forgot about that 😉 |
Thanks for the updates! Since we will only really see how it goes once merged, let's merge this |
@jorisvandenbossche sorry about that. But please see #597 as @choldgraf was changing the logic to not rely on JS here. |
No problem. And yes, I saw that PR, but I thought this could go in first, so we could ensure #597 would ensure the same behaviour .. |
Got it, sorry cannot really help a lot here. I got help for the syntax at the end. I originally had a for loop and I recall testing it locally and I believe it was working. |
You might need to get the actual node with jquery... I think something like the following (untested) might work?
|
OK, here you have a PR #599 fixing this one among other things I have talked about in my above comments (hopefully 😉):
|
Btw, there is another issue with this PR... if you land into stable: https://pydata-sphinx-theme.readthedocs.io/en/stable/ and try to go any other version, it will fail, ie. https://pydata-sphinx-theme.readthedocs.io/en/vv0.7.2/ |
IMO we should fix it, release 0.8.1, and then remove 0.8.0 from existence in the dropdown - in general, I only think we need to display the versions of the latest release on a major version (or, for each minor release for now maybe) |
Ah, good catch, I didn't think about that when changing the But assume that the dropdown already had existed for a longer time (eg also in 0.6 and 0.7 docs), then this would not have been that easy to "fix". So this points a bit to an inherent limitation of changing things in future versions after an initial set-up? Which makes our current approach not super robust to changing urls? |
That's a good point @jorisvandenbossche - I'm actually wondering if the approach you describe - giving fully-resolved URLs instead of a template - is actually a better solution in general with less complexity. I'll write up an issue to discuss |
👉 #600 |
Related to the discussion in #556, and trying to improve the versions in the dropdown in our own demo docs.
cc @drammock