Skip to content

Commit cf662a2

Browse files
committed
Merge tag '7.1.0' into rel
2 parents 32e05b4 + bbe2ebf commit cf662a2

File tree

17 files changed

+43
-148
lines changed

17 files changed

+43
-148
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ about: Report some incorrect or unexpected behavior
55

66
## Details
77

8-
* Read the Docs project URL:
9-
* Build URL (if applicable):
10-
* Read the Docs username (if applicable):
8+
* Read the Docs project URL: https://readthedocs.org/projects/{your_project_slug}/
9+
* Build URL (if applicable): https://readthedocs.org/projects/{your_project_slug}/builds/{build_id}/
10+
* Read the Docs username (if applicable): https://readthedocs.org/profiles/{your_rtd_username}/
1111

1212
## Expected Result
1313

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Version 7.1.0
2+
-------------
3+
4+
:Date: January 25, 2022
5+
6+
* `@astrojuanlu <https://github.com/astrojuanlu>`__: Detail what URLs are expected in issue template (`#8832 <https://github.com/readthedocs/readthedocs.org/pull/8832>`__)
7+
* `@humitos <https://github.com/humitos>`__: Cleanup: delete unused Django management commands (`#8830 <https://github.com/readthedocs/readthedocs.org/pull/8830>`__)
8+
* `@simonw <https://github.com/simonw>`__: Canonical can point as stable, not just latest (`#8828 <https://github.com/readthedocs/readthedocs.org/pull/8828>`__)
9+
* `@humitos <https://github.com/humitos>`__: Docs: remove `USE_TESTING_BUILD_IMAGE` (`#8824 <https://github.com/readthedocs/readthedocs.org/pull/8824>`__)
10+
* `@davidfischer <https://github.com/davidfischer>`__: Use stickybox ad placement on RTD themed projects (`#8823 <https://github.com/readthedocs/readthedocs.org/pull/8823>`__)
11+
* `@ericholscher <https://github.com/ericholscher>`__: Quiet the Unresolver logging (`#8822 <https://github.com/readthedocs/readthedocs.org/pull/8822>`__)
12+
* `@stsewd <https://github.com/stsewd>`__: Workaround for HttpExchange queries casting IDs as uuid/int wrongly (`#8821 <https://github.com/readthedocs/readthedocs.org/pull/8821>`__)
13+
* `@stsewd <https://github.com/stsewd>`__: Fix queryset for generic models (`#8820 <https://github.com/readthedocs/readthedocs.org/pull/8820>`__)
14+
* `@ericholscher <https://github.com/ericholscher>`__: Release 7.0.0 (`#8818 <https://github.com/readthedocs/readthedocs.org/pull/8818>`__)
15+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 03 (`#8817 <https://github.com/readthedocs/readthedocs.org/pull/8817>`__)
16+
* `@stsewd <https://github.com/stsewd>`__: Subscriptions: move views (`#8816 <https://github.com/readthedocs/readthedocs.org/pull/8816>`__)
17+
118
Version 7.0.0
219
-------------
320

docs/user/custom_domains.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ so that they can send people to the correct page.
147147

148148
Read the Docs uses these in two ways:
149149

150-
* We point all versions of your docs at the "latest" version as canonical
150+
* We point all versions of your docs at default version, usually "latest" or "stable", as canonical.
151151
* We point at the user specified canonical URL, generally a custom domain for your docs.
152152

153153
Example

docs/user/feature-flags.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ The ``DONT_SHALLOW_CLONE`` flag is useful if your code accesses old commits duri
3232
e.g. python-reno release notes manager is known to do that
3333
(error message line would probably include one of old Git commit id's).
3434

35-
``USE_TESTING_BUILD_IMAGE``: :featureflags:`USE_TESTING_BUILD_IMAGE`
36-
3735
``LIST_PACKAGES_INSTALLED_ENV``: :featureflags:`LIST_PACKAGES_INSTALLED_ENV`
3836

3937
``DONT_CREATE_INDEX``: :featureflags:`DONT_CREATE_INDEX`

readthedocs/builds/models.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -412,21 +412,6 @@ def get_storage_environment_cache_path(self):
412412
"""Return the path of the cached environment tar file."""
413413
return build_environment_storage.join(self.project.slug, f'{self.slug}.tar')
414414

415-
def clean_build_path(self):
416-
"""
417-
Clean build path for project version.
418-
419-
Ensure build path is clean for project version. Used to ensure stale
420-
build checkouts for each project version are removed.
421-
"""
422-
try:
423-
path = self.get_build_path()
424-
if path is not None:
425-
log.debug('Removing build path for project.', path=path, project_slug=self.slug)
426-
rmtree(path)
427-
except OSError:
428-
log.exception('Build path cleanup failed')
429-
430415
def get_github_url(
431416
self,
432417
docroot,

readthedocs/core/management/commands/clean_builds.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

readthedocs/core/management/commands/pull.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

readthedocs/core/management/commands/update_versions.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

readthedocs/core/static-src/core/js/doc-embed/sponsorship.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function inject_ads_client() {
2929
function create_ad_placement() {
3030
var selector = null;
3131
var class_name; // Used for theme specific CSS customizations
32+
var style_name;
33+
var ad_type = "readthedocs-sidebar";
3234
var element;
3335
var offset;
3436

@@ -51,7 +53,13 @@ function create_ad_placement() {
5153
class_name = 'ethical-rtd ethical-dark-theme';
5254
} else if (rtd.is_rtd_like_theme()) {
5355
selector = 'nav.wy-nav-side > div.wy-side-scroll';
54-
class_name = 'ethical-rtd ethical-dark-theme';
56+
if (Math.random() <= 0.1) {
57+
// Use the stickybox placement 10% of the time during rollout
58+
style_name = 'stickybox';
59+
ad_type = 'image';
60+
} else {
61+
class_name = 'ethical-rtd ethical-dark-theme';
62+
}
5563
} else if (rtd.is_alabaster_like_theme()) {
5664
selector = 'div.sphinxsidebar > div.sphinxsidebarwrapper';
5765
class_name = 'ethical-alabaster';
@@ -78,8 +86,9 @@ function create_ad_placement() {
7886
return $('<div />')
7987
.attr("id", "rtd-sidebar")
8088
.attr("data-ea-publisher", "readthedocs")
81-
.attr("data-ea-type", "readthedocs-sidebar")
89+
.attr("data-ea-type", ad_type)
8290
.attr("data-ea-manual", "true")
91+
.attr("data-ea-style", style_name)
8392
.addClass(class_name)
8493
.appendTo(selector);
8594
}

readthedocs/core/static/core/js/readthedocs-doc-embed.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readthedocs/core/unresolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def unresolve_from_request(self, request, path):
7979
# We need to add the index.html to find this actual file
8080
filename += 'index.html'
8181

82-
log.info(
82+
log.debug(
8383
'Unresolver parsed.',
8484
project_slug=final_project.slug,
8585
lang_slug=lang_slug,

readthedocs/projects/views/private.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ class WebHookExchangeDetail(WebHookMixin, DetailView):
634634
def get_queryset(self):
635635
# NOTE: We are explicitly using the id instead of the the object
636636
# to avoid a bug where the id is wrongly casted as an uuid.
637+
# https://code.djangoproject.com/ticket/33450
637638
return self.model.objects.filter(webhook__id=self.get_webhook().id)
638639

639640
def get_webhook(self):
@@ -918,9 +919,7 @@ class IntegrationExchangeDetail(IntegrationMixin, DetailView):
918919
template_name = 'projects/integration_exchange_detail.html'
919920

920921
def get_queryset(self):
921-
# NOTE: We are explicitly using the id instead of the the object
922-
# to avoid a bug where the id is wrongly casted as an uuid.
923-
return self.model.objects.filter(integrations__id=self.get_integration().id)
922+
return self.model.objects.filter(integrations=self.get_integration())
924923

925924
def get_object(self):
926925
return DetailView.get_object(self)

requirements/deploy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
-r pip.txt
44

5-
psycopg2==2.9.2
5+
psycopg2==2.9.3
66
gunicorn==20.1.0
77
django-redis-cache==3.0.0
88

requirements/docker.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ argh==0.26.2
2626
tox==3.24.5
2727

2828
# AWS utilities to use against MinIO
29-
awscli==1.22.31
29+
awscli==1.22.37
3030

3131
# Used together with structlog to have nicer logs locally
3232
rich==11.0.0

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Packages required to build docs, independent of application dependencies
22

3-
Sphinx==4.3.2
3+
Sphinx==4.4.0
44
Pygments==2.11.2
55

66
sphinx_rtd_theme==1.0.0

requirements/pip.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ django-simple-history==3.0.0
1212
djangorestframework==3.13.1
1313

1414
# For intersphinx during builds
15-
Sphinx==4.3.2
15+
Sphinx==4.4.0
1616

1717
# Filtering for the REST API
1818
django-filter==21.1
@@ -55,9 +55,9 @@ requests-oauthlib==1.3.0
5555
GitPython==3.1.18 # pyup: ignore
5656

5757
# Search
58-
elasticsearch==7.16.2 # pyup: <8.0.0
58+
elasticsearch==7.16.3 # pyup: <8.0.0
5959
elasticsearch-dsl==7.4.0 # pyup: <8.0
60-
django-elasticsearch-dsl==7.2.1 # pyup: <8.0
60+
django-elasticsearch-dsl==7.2.2 # pyup: <8.0
6161
selectolax==0.3.6
6262

6363
# embed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = readthedocs
3-
version = 7.0.0
3+
version = 7.1.0
44
license = MIT
55
description = Read the Docs builds and hosts documentation
66
author = Read the Docs, Inc

0 commit comments

Comments
 (0)