Skip to content

checked for the use of latest stable and latest and fixed it #6575

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
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions docs/api/v3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Project details
},
"_links": {
"_self": "/api/v3/projects/pip/",
"versions": "/api/v3/projects/pip/versions/",
"versions": "/api/v3/project/pip/version/",
"builds": "/api/v3/projects/pip/builds/",
"subprojects": "/api/v3/projects/pip/subprojects/",
"superproject": "/api/v3/projects/pip/superproject/",
Expand Down Expand Up @@ -315,7 +315,7 @@ Version detail
"identifier": "3a6b3995c141c0888af6591a59240ba5db7d9914",
"ref": "19.0.2",
"built": true,
"active": true,
"active": true
"type": "tag",
"last_build": "{BUILD}",
"downloads": {
Expand Down
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.

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`).
3 changes: 3 additions & 0 deletions media/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ div.module.search-dashboard input {
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
text-decoration: none;
}
#project_bar div.project-view-docs > a:hover{
background-color: #3e8e41
}

#project_bar .project-title { padding: 0; }
#project_bar .project-title h1 { margin: 0 0 5px; padding: 0; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-10-17 15:58
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('projects', '0044_auto_20190703_1300'),
]

operations = [
migrations.AlterField(
model_name='project',
name='show_version_warning',
field=models.BooleanField(default=False, help_text='Show a warning banner with a link to the stable version on not stable versions, except for latest.', verbose_name='Show version warning'),
),
]
5 changes: 4 additions & 1 deletion readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ 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 a warning banner with a link to the stable version.'
'The banner is shown in all the versions, but in the latest and stable.'
),
)

# Sphinx specific build options.
Expand Down