Skip to content

Conversation

@JulienPalard
Copy link
Member

This is a draft on how we could provide a link to newer versions:

deprecated

Co-Authored-By: @matrixise

It lacks a few little things:

  • I have not tested it yet, my laptop here is too slow to build multiple languages
  • I think that over the pure html link (good for SEO) we could add a layer of javascript to test the existence of the target page and fallbacking to / instead of linking to a 404.

@theacodes
Copy link
Collaborator

@JulienPalard this looks great to me so far. Are you planning on handling the two remaining items (testing and clever javascript) or are you wanting someone on this end to take it on?

@matrixise
Copy link
Member

Hi @theacodes

If you want to work on the JavaScript, you could see the code of the switchers.

Thank you

I’ll review this PR

@theacodes
Copy link
Collaborator

Honestly looking at the way swichers.js is implemented in cpython, it probably make sense to just move all of this logic there. If anything, put a new block here maybe (block pre_body_area) to allow the cpython configuration to inject the thing.

@JulienPalard
Copy link
Member Author

@theacodes you mean to move the whole red ribbon on the cpython repo? Even its style?

@theacodes
Copy link
Collaborator

theacodes commented May 12, 2019 via email

@JulienPalard
Copy link
Member Author

I think that's easier in cpython, also because not all versions are using the theme, so I'm moving it there. Thanks @theacodes.

@theacodes
Copy link
Collaborator

theacodes commented May 28, 2019 via email

@JulienPalard
Copy link
Member Author

python/cpython#13638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants