-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add a banner line for latest hints #6143
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
Conversation
78b8ee4
to
2b1ccab
Compare
Wouldn't it be less redundant and more crisp if it just stated |
@arron-tij: Suggestion - always write notes on ticket, never spam or write notes on any PRs if you aren't a maintainer. Feel free writing a PR, nothing is assigned, I just felt like closing that tiny issue out. |
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.
You should update this help text too
help_text=_('Show warning banner in non-stable nor latest versions.'), |
@arron-tij we don't assign issues, but if there is an open PR, that means someone else is working on that issue. You can take the work if the PR is stale and the author hasn't update it in a long time. Feel free to ask questions on our gitter channel https://gitter.im/rtfd/readthedocs.org |
@stsewd: Please see now. |
Co-Authored-By: Santos Gallegos <[email protected]>
5c37141
to
2d86838
Compare
2d86838
to
0ea6e39
Compare
@stsewd: review ping. |
@@ -15,7 +15,7 @@ class Migration(migrations.Migration): | |||
migrations.AddField( | |||
model_name='project', | |||
name='show_version_warning', | |||
field=models.BooleanField(default=False, help_text='Show warning banner in non-stable nor latest versions.', verbose_name='Show version warning'), | |||
field=models.URLField(blank=True, help_text='You are seeing unstable version of the documentation, see the stable versions.', verbose_name='Show version warning'), |
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.
There is not need to change the field type. Also, the text doesn't match the usage of this field.
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 don't know what you are saying. How do you think you will have a link shown in the banner?
readthedocs/projects/models.py
Outdated
default=False, | ||
help_text=_('Show warning banner in non-stable nor latest versions.'), | ||
blank=True, | ||
help_text=_('You are seeing unstable version of the documentation, see the stable versions.'), |
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.
Same, you shouldn't change the defaults
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.
text?
@stsewd: I did few text fixes, lemme know. |
@tapaswenipathak you only neeed to change the help text, not the field type of the models |
@stsewd: Can you tell me the correct text? Ref: #6143 (comment). |
Something like
|
@stsewd: review ping. |
readthedocs/projects/migrations/0024_add-show-version-warning.py
Outdated
Show resolved
Hide resolved
1184582? ok now? feeling really tired doing the fixes. |
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.
1184582? ok now? feeling really tired doing the fixes.
Sorry about that, but the changes were necessary.
Thanks, looks good now.
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 think the change is good, but I'd like to get some feedback on the English sentences to make it clearer.
@@ -62,7 +62,7 @@ Version warning | |||
--------------- | |||
|
|||
This is a banner that appears on the top of every page of your docs that aren't stable or latest. | |||
This banner has a text with a link redirecting the users to the latest version of your docs. | |||
This banner has a text with a link redirecting the users to the stable version of your docs. |
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.
This may still be confusing. I'd like to say something like
This banner has a text with a link redirecting the users to the stable version of your docs. | |
This banner has a text with a link redirecting the users to the latest stable version of your docs. |
but with a clearer English sentence.
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.
Mmm... does the banner links to v0.x
or to stable
?
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.
We only have one stable version, there isn't something like latest stable
.
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 realized that and that's why my second question.
'Show a warning banner with a link to the stable version on not' | ||
' stable versions, except for latest.' |
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.
Here also. I'd like to improve this sentence. It's really hard to parse and understand the last part: "the stable version on not stable versions, except for latest.". After reading it three times I think I understand what it means, but it was hard to get it.
Maybe splitting it in multiple sentences like:
Show a warning banner with a link to the stable version.
The banner is shown in all the versions, but in latest and stable.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixes #6096