Skip to content

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

Closed

Conversation

tapaswenipathak
Copy link
Contributor

Fixes #6096

@tapaswenipathak tapaswenipathak changed the title Add a banner for latest hints Add a banner line for latest hints Sep 6, 2019
@arron-tij
Copy link

arron-tij commented Sep 7, 2019

Wouldn't it be less redundant and more crisp if it just stated
This banner has a text with a link redirecting the users to the latest stable version of your docs.
Also I think it doesn't fix the second part of the issue. Should I go ahead and make another PR @stsewd or this issue has already been assigned?
(Sorry if i am mistaken somewhere I am new to open source)

@tapaswenipathak
Copy link
Contributor Author

tapaswenipathak commented Sep 7, 2019

@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.

Copy link
Member

@stsewd stsewd left a 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.'),

@stsewd
Copy link
Member

stsewd commented Sep 9, 2019

@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

@tapaswenipathak
Copy link
Contributor Author

@stsewd: Please see now.

@humitos humitos added the PR: work in progress Pull request is not ready for full review label Oct 9, 2019
@tapaswenipathak tapaswenipathak force-pushed the ticket-6096 branch 2 times, most recently from 5c37141 to 2d86838 Compare October 15, 2019 14:17
@tapaswenipathak
Copy link
Contributor Author

@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'),
Copy link
Member

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.

Copy link
Contributor Author

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?

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.'),
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text?

@tapaswenipathak
Copy link
Contributor Author

@stsewd: I did few text fixes, lemme know.

@stsewd
Copy link
Member

stsewd commented Oct 16, 2019

@tapaswenipathak you only neeed to change the help text, not the field type of the models

@tapaswenipathak
Copy link
Contributor Author

@stsewd: Can you tell me the correct text? Ref: #6143 (comment).

@stsewd
Copy link
Member

stsewd commented Oct 16, 2019

Something like

Show a warning banner with a link to the stable version on not stable versions, except for latest

@tapaswenipathak
Copy link
Contributor Author

@stsewd: review ping.

@tapaswenipathak
Copy link
Contributor Author

tapaswenipathak commented Oct 17, 2019

1184582? ok now? feeling really tired doing the fixes.

Copy link
Member

@stsewd stsewd left a 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.

@stsewd stsewd removed the PR: work in progress Pull request is not ready for full review label Oct 17, 2019
@stsewd stsewd requested a review from a team October 17, 2019 20:56
Copy link
Member

@humitos humitos left a 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.
Copy link
Member

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

Suggested change
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.

Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

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.

Comment on lines +255 to +256
'Show a warning banner with a link to the stable version on not'
' stable versions, except for latest.'
Copy link
Member

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.

@stale
Copy link

stale bot commented Jan 2, 2020

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.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Jan 2, 2020
@stale stale bot closed this Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: stale Issue will be considered inactive soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check use of latest for latest unreleased versions vs latest stable versions
4 participants