Repository navigation
fixing the version switcher in the docs - #3743
Conversation
💡 Codex Reviewmesa/docs/_static/switcher.json Line 5 in c8a84fd Because this change updates mesa/docs/_static/switcher.json Lines 8 to 10 in c8a84fd
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Performance benchmarks:
|
|
@dietcoke-17 Great thanks for tracking this down. Can you fix the conflicts please? To be clear my understanding is there is an organic read the docs that stores the previous versions so users can look through the history and this will now allow that. correct? |
|
Yes I can fix the conflicts actually but regarding the history i will let you know how we can do that is there any possible way |
|
Hey @tpike3 i got it this pr actually solves that problem |
|
@dietcoke-17 I think this needs more a permanent fix that is part of the our github actions. This right now seems like a very brittle fix that would have to be updated each time we do a release. In addition, right now if you go to the drop down in the upper left on the generated docs form this PR https://mesa--3743.org.readthedocs.build/3743/ the options then disappear. I would go to just one version selector upper left or lower right, and there must be a way to make a new release a part of the readthedocs so then the versions are available to users. @EwoutH put together a very nice step by step guide on how we do a release. https://github.com/mesa/mesa/blob/main/CONTRIBUTING.md#releases. Would you be able to update this PR so it updates the workflow and read the docs so as we do a release it generates the the drop down as your pydata theme picture above? |
EwoutH
left a comment
There was a problem hiding this comment.
Diff looks good, thanks.
Will let merge to another maintainer.
|
@tpike3 sorry i didnt have that bigger picture & surely working on this and will make sure to fix this problem in this PR |
|
@tpike3 i have updated as you have diretected and updated the workflow so whenever their is a new update the workflow will make sure with new release it generates the the drop down as well as update with new version |
|
@dietcoke-17 Thanks. Looking at the read the docs from the PR, https://mesa--3743.org.readthedocs.build/3743/, it still does not seem to be having the desired impact. the switcher in the upper left is only in latest. While stable and 3.5.1 does not have it. I do not want to send you chasing for improvements beyond your original PR. So, if you want you can go back to the original simpler PR, with the goal that their is only the switcher in the bottom right. Or, you can continue to pursue this more automated version. Entirely up to you. Either way we appreciate the work you are putting into this! |
|
@tpike3 as currently in my local in both latest and v3.5.1 both were properly working and the dropdown working smoothly and as you hav directed in the pr #3738 directed only two version due to a mistake in the confy.py file the stable version remained unchanged and also i have mentioned it eariler now both latest and v3.5.1 works smoothly we can see in the readthe docs build you might contradict with the fact that whenever you click on the v3.5.1 version it actually redirect you to the version which is currently present without this merged pr after this pr the fix will be automatically can be seen i think this fixes the issue i have checked every possible angle why it wont fail. |
|
Thanks @dietcoke-17 |


this actually fix the version switcher in the read the docs , confy.py in docs folder actually generates the docs and in the switcher json link it previously has /en which was creating the problem so its a fix to that problem and followed up by #3738