Skip to content
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

[WIP] Add warning about old versions #28

Closed

Conversation

@JulienPalard
Copy link
Member

@JulienPalard JulienPalard commented May 8, 2019

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

@theacodes theacodes commented May 9, 2019

@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

@matrixise matrixise commented May 9, 2019

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

@theacodes theacodes commented May 11, 2019

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

@JulienPalard JulienPalard commented May 12, 2019

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

@theacodes
Copy link
Collaborator

@theacodes theacodes commented May 12, 2019

@JulienPalard
Copy link
Member Author

@JulienPalard JulienPalard commented May 28, 2019

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 theacodes commented May 28, 2019

@JulienPalard
Copy link
Member Author

@JulienPalard JulienPalard commented May 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.