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
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.


This feature is disabled by default on new projects,
you can enable it in the admin section of your docs (:guilabel:`Admin` > :guilabel:`Advanced Settings`).
2 changes: 1 addition & 1 deletion readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class Project(models.Model):
show_version_warning = models.BooleanField(
_('Show version warning'),
default=False,
help_text=_('Show warning banner in non-stable nor latest versions.'),
help_text=_('Show warning banner in non-stable nor stable latest versions.'),
)

# Sphinx specific build options.
Expand Down