Skip to content

Version select drop down list is broken in newer versions #247

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

Closed
StanFromIreland opened this issue Feb 11, 2025 · 4 comments
Closed

Version select drop down list is broken in newer versions #247

StanFromIreland opened this issue Feb 11, 2025 · 4 comments

Comments

@StanFromIreland
Copy link
Contributor

Reported by Mark Yagnatinsky to [email protected] mailing list. User does not have access to a GitHub account to open an issue themselves.

A picture is worth a thousand words here. Let’s start with an old version of the python tutorial.

Image

https://docs.python.org/3.7/tutorial/index.html

At the top of the page, we have a drop down menu:

Using this menu, we can quickly “flip back” to old versions of the tutorial (as far back as 2.7), or forward all the way to 3.13.

We can do this for basically any page of documentation. Most importantly, we can do this for any part of the standard library.

In python 3.8, the range of versions we can choose has expanded: we can pick versions that are long out of support like 2.6 or 3.1.

I like this actually: it should be easy to get docs for python 2.6 even if no further updates are planned.

(This is something Python does much better than the GNU project (in my opinion), where typically the website only has the docs for the latest and greatest version of, say, bash or grep conveniently accessible.)

But starting from 3.8, clicking a version doesn’t take you to “same” page in the new version.

It drops you back at the table of contents.

That’s all I have for now I guess.

@AA-Turner AA-Turner transferred this issue from python/cpython Feb 11, 2025
@AA-Turner
Copy link
Member

Probably duplicates #241?

A

@StanFromIreland
Copy link
Contributor Author

It is different, this redirects you but not to the page you were on. Maybe you broke this in your commit to fix it?

@JulienPalard
Copy link
Member

Could this be related to the none showing up in the language select?

I see the JS trying to hit https://docs.python.org/none/3.9/index.html before navingating to the index.

@AA-Turner
Copy link
Member

I believe this is now resolved. Please let Mark Yagnatinsky know.

A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants