Skip to content

Commit 73c0447

Browse files
committed
Merge branch 'master' of github.com:readthedocs/readthedocs.org into remote-repository-normalization
2 parents 20549f5 + 31abb0a commit 73c0447

File tree

27 files changed

+314
-669
lines changed

27 files changed

+314
-669
lines changed

CHANGELOG.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
Version 5.12.1
2+
--------------
3+
4+
:Date: March 16, 2021
5+
6+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 11 (`#8019 <https://github.com/readthedocs/readthedocs.org/pull/8019>`__)
7+
* `@stsewd <https://github.com/stsewd>`__: Embed: Allow to override embed view for proxied use (`#8018 <https://github.com/readthedocs/readthedocs.org/pull/8018>`__)
8+
* `@humitos <https://github.com/humitos>`__: RemoteRepository: Improvements to `sync_vcs_data.py` script (`#8017 <https://github.com/readthedocs/readthedocs.org/pull/8017>`__)
9+
* `@humitos <https://github.com/humitos>`__: Stripe checkout: handle events (`#8016 <https://github.com/readthedocs/readthedocs.org/pull/8016>`__)
10+
* `@humitos <https://github.com/humitos>`__: Remove `contrib/` directory (`#8014 <https://github.com/readthedocs/readthedocs.org/pull/8014>`__)
11+
* `@stsewd <https://github.com/stsewd>`__: Dockerfile: install lsb_release (`#8010 <https://github.com/readthedocs/readthedocs.org/pull/8010>`__)
12+
* `@davidfischer <https://github.com/davidfischer>`__: Fix AWS image so it looks sharp (`#8009 <https://github.com/readthedocs/readthedocs.org/pull/8009>`__)
13+
* `@stsewd <https://github.com/stsewd>`__: Update common (`#8008 <https://github.com/readthedocs/readthedocs.org/pull/8008>`__)
14+
* `@stsewd <https://github.com/stsewd>`__: Update Sphinx (`#8007 <https://github.com/readthedocs/readthedocs.org/pull/8007>`__)
15+
* `@2Fake <https://github.com/2Fake>`__: fix small typo (`#8005 <https://github.com/readthedocs/readthedocs.org/pull/8005>`__)
16+
* `@stsewd <https://github.com/stsewd>`__: Embed: validate query arguments (`#8003 <https://github.com/readthedocs/readthedocs.org/pull/8003>`__)
17+
* `@humitos <https://github.com/humitos>`__: Stripe Checkout: handle duplicated wehbook (`#8002 <https://github.com/readthedocs/readthedocs.org/pull/8002>`__)
18+
* `@saadmk11 <https://github.com/saadmk11>`__: Add __str__ to RemoteRepositoryRelation and RemoteOrganizationRelation and Use raw_id_fields in Admin (`#8001 <https://github.com/readthedocs/readthedocs.org/pull/8001>`__)
19+
* `@saadmk11 <https://github.com/saadmk11>`__: Remove duplicate results from RemoteOrganization API (`#8000 <https://github.com/readthedocs/readthedocs.org/pull/8000>`__)
20+
* `@humitos <https://github.com/humitos>`__: Typo fixed on `checkout.js` (`#7998 <https://github.com/readthedocs/readthedocs.org/pull/7998>`__)
21+
* `@ericholscher <https://github.com/ericholscher>`__: Make SupportView login_required (`#7997 <https://github.com/readthedocs/readthedocs.org/pull/7997>`__)
22+
* `@ericholscher <https://github.com/ericholscher>`__: Release 5.12.0 (`#7996 <https://github.com/readthedocs/readthedocs.org/pull/7996>`__)
23+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 10 (`#7995 <https://github.com/readthedocs/readthedocs.org/pull/7995>`__)
24+
* `@saadmk11 <https://github.com/saadmk11>`__: Remove json field from RemoteRepositoryRelation and RemoteOrganizationRelation model (`#7993 <https://github.com/readthedocs/readthedocs.org/pull/7993>`__)
25+
* `@humitos <https://github.com/humitos>`__: Use independent Docker image to build assets (`#7992 <https://github.com/readthedocs/readthedocs.org/pull/7992>`__)
26+
* `@Pradhvan <https://github.com/Pradhvan>`__: Fixes typo in getting-started-with-sphinx: (`#7991 <https://github.com/readthedocs/readthedocs.org/pull/7991>`__)
27+
* `@humitos <https://github.com/humitos>`__: Allow `donate` app to use Stripe Checkout for one-time donations (`#7983 <https://github.com/readthedocs/readthedocs.org/pull/7983>`__)
28+
* `@ericholscher <https://github.com/ericholscher>`__: Add proxito healthcheck (`#7948 <https://github.com/readthedocs/readthedocs.org/pull/7948>`__)
29+
* `@Pradhvan <https://github.com/Pradhvan>`__: Docs: Adds Myst to the getting started with sphinx (`#7938 <https://github.com/readthedocs/readthedocs.org/pull/7938>`__)
30+
* `@humitos <https://github.com/humitos>`__: Use Stripe Checkout for Gold Users (`#7889 <https://github.com/readthedocs/readthedocs.org/pull/7889>`__)
31+
* `@stsewd <https://github.com/stsewd>`__: Docs: guide about reproducible builds (`#7888 <https://github.com/readthedocs/readthedocs.org/pull/7888>`__)
32+
133
Version 5.12.0
234
--------------
335

common

Submodule common updated 1 file

contrib/Dockerfile

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

contrib/add-project.py

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

contrib/docker_build.sh

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

contrib/readme.rst

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

contrib/supervisord.conf

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

dockerfiles/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ RUN apt-get -y install \
2525
libjpeg-dev \
2626
sqlite \
2727
netcat \
28-
telnet
28+
telnet \
29+
lsb-release
2930

3031
# https://www.postgresql.org/download/linux/ubuntu/
3132
# Use PostgreSQL client 12 from official PostgreSQL Ubuntu's repository to avoid this WARNING

docs/development/search.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ All the Sphinx documents are indexed into Elasticsearch after the build is succe
6969
Currently, we do not index MkDocs documents to elasticsearch, but
7070
`any kind of help is welcome <https://github.com/readthedocs/readthedocs.org/issues/1088>`_.
7171

72-
Troubelshooting
72+
Troubleshooting
7373
^^^^^^^^^^^^^^^
7474

7575
If you get an error like::

media/images/sponsors/aws.png

4 KB
Loading

readthedocs/api/v2/proxied_urls.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
from django.conf.urls import include, url
1010

1111
from readthedocs.analytics.proxied_api import AnalyticsView
12+
from readthedocs.api.v2.views.proxied import ProxiedEmbedAPI, ProxiedFooterHTML
1213
from readthedocs.search.proxied_api import ProxiedPageSearchAPIView
1314

14-
from .views.proxied import ProxiedFooterHTML
15-
1615
api_footer_urls = [
1716
url(r'footer_html/', ProxiedFooterHTML.as_view(), name='footer_html'),
1817
url(r'search/$', ProxiedPageSearchAPIView.as_view(), name='search_api'),
19-
url(r'embed/', include('readthedocs.embed.urls')),
18+
url(r'embed/', ProxiedEmbedAPI.as_view(), name='embed_api'),
2019
url(r'analytics/$', AnalyticsView.as_view(), name='analytics_api'),
2120
]
2221

readthedocs/api/v2/views/proxied.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from readthedocs.api.v2.views.footer_views import BaseFooterHTML
12
from readthedocs.core.utils.extend import SettingsOverrideObject
2-
3-
from .footer_views import BaseFooterHTML
3+
from readthedocs.embed.views import EmbedAPIBase
44

55

66
class BaseProxiedFooterHTML(BaseFooterHTML):
@@ -13,3 +13,15 @@ class BaseProxiedFooterHTML(BaseFooterHTML):
1313
class ProxiedFooterHTML(SettingsOverrideObject):
1414

1515
_default_class = BaseProxiedFooterHTML
16+
17+
18+
class ProxiedEmbedAPIBase(EmbedAPIBase):
19+
20+
# DRF has BasicAuthentication and SessionAuthentication as default classes.
21+
# We don't support neither in the community site.
22+
authentication_classes = []
23+
24+
25+
class ProxiedEmbedAPI(SettingsOverrideObject):
26+
27+
_default_class = ProxiedEmbedAPIBase

0 commit comments

Comments
 (0)