-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notification: simple stable-latest version warning logic (#125)
I implemented the simple idea exposed in #71. I think we can start with this simple logic that's easy to explain and grow from here if necessary. - on `latest`: a notification to warn the user about some features may not yet be available is shown - on non-`stable` nor `latest` versions: a notification to warn the user about possible reading and old/outdated version is shown Note that both notification are pretty simple, it does not require external dependencies (e.g. `semver`) and it's easy to explain to users. The warning is shown only if `stable` is an active version --since we link to it from both. ## On `latest` ![Screenshot_2023-09-13_12-31-59](https://github.com/readthedocs/addons/assets/244656/fd44859d-bf14-4f98-b586-449212141f00) ## On non-`stable` ![Screenshot_2023-09-13_12-31-19](https://github.com/readthedocs/addons/assets/244656/0a9014f9-ab95-42f3-8050-3c927cd97847) ---- _However_, I think the best way for users to make usage of this addon is by implementing the logic that fits their needs by themselves. We don't allow users to customize this logic just yet, but we plan to do it in the future when the addons is more settled down. Closes #71
- Loading branch information
Showing
5 changed files
with
90 additions
and
56 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters