-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
make switcher match gh-pages #2007
make switcher match gh-pages #2007
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Makes a lot of sense to me. 🙌
break | ||
if latest_index is None: | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't even realize this kind of for
/ if
/ break
/ else
combo was possible. TIL, interesting. 👍
destination_dir: latest | ||
keep_files: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I read this correctly, these 2 lines will "re-deploy" to latest every time this executes, thus, having the latest docs always available in that dir. Nice and simple. Makes sense to me.
Thanks Marius! Appreciate you taking the time to take a look at this. I'll give this a try once we fixed the publish docs workflow. |
f342068
to
72d82a2
Compare
pre-commit.ci autofix |
#1965 was a really helpful change to get our docs versioning updated automatically on release. It got us a large way there, but not fully. I noticed while the dropdown in the UI is updated correctly, it doesn't fully correspond to the folder situation on our
gh-pages
branch. See https://github.com/python-visualization/folium/tree/gh-pages.The issue is we have a main
index.html
that redirects tolatest/index.html
. To make things easy, we'd ideally not have to update this redirect, but always put the latest release version in thestable
branch.Furthermore, I'd like it if there are not two entries in the dropdown for the same version. So 'latest' should now refer to v0.17.0, and there shouldn't also be a v0.17.0 option. And 'latest' should make clear it refers to v0.17.0, by including a name like "latest (v0.17.0).
latest/
.switcher.json
to be prepared for the new version of the script.@merschformann don't know if you have time and are interested to review this one? Thanks again for your original work, made it easy to make this step.