Skip to content

Commit 01cf49f

Browse files
authored
Merge branch 'master' into fix-domain-deletion-task-sym
2 parents d2980f4 + 78e5b7a commit 01cf49f

File tree

145 files changed

+2621
-1483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+2621
-1483
lines changed

.codecov.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
comment:
2-
layout: "diff, files"
1+
comment: off
2+
coverage:
3+
status:
4+
project: off
5+

.github/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ProBot TODO bot
2+
# https://probot.github.io/apps/todo/
3+
4+
todo:
5+
autoAssign: false
6+
blobLines: 7
7+
caseSensitive: true
8+
keyword: "TODO"
9+

.github/no-response.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ProBot No Response Bot
2+
# https://probot.github.io/apps/no-response/
3+
4+
# Number of days of inactivity before an Issue is closed for lack of response
5+
daysUntilClose: 14
6+
7+
# Label requiring a response
8+
responseRequiredLabel: 'Needed: more information'
9+
10+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
11+
closeComment: >
12+
This issue has been automatically closed because
13+
[there has been no response to our request for more information](https://docs.readthedocs.io/en/latest/contribute.html#initial-triage)
14+
from the original author. With only the information that is currently in the issue,
15+
we don't have enough information to take action.
16+
Please reach out if you have or find the answers we need so that we can investigate further.
17+
Thanks!

.github/stale.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ProBot Stale Bot
2+
# https://probot.github.io/apps/stale/
3+
4+
# Number of days of inactivity before an issue becomes stale
5+
daysUntilStale: 45
6+
7+
# Number of days of inactivity before a stale issue is closed
8+
daysUntilClose: 7
9+
10+
# Issues with these labels will never be considered stale
11+
exemptLabels:
12+
- 'Accepted'
13+
- 'Needed: design decision'
14+
- 'Status: blocked'
15+
16+
# Label to use when marking an issue as stale
17+
staleLabel: 'Status: stale'
18+
19+
# Comment to post when marking an issue as stale. Set to `false` to disable
20+
markComment: >
21+
This issue has been automatically marked as stale because it has not had
22+
recent activity. It will be closed if no further activity occurs. Thank you
23+
for your contributions.
24+
25+
# Comment to post when closing a stale issue. Set to `false` to disable
26+
closeComment: false

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22
python:
33
- 2.7
44
- 3.6
5-
sudo: false
65
env:
76
- ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
87
matrix:

CHANGELOG.rst

+88
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,91 @@
1+
Version 2.8.4
2+
-------------
3+
4+
:Date: December 17, 2018
5+
6+
* `@davidfischer <http://github.com/davidfischer>`__: Tweak sidebar ad priority (`#5005 <https://github.com/rtfd/readthedocs.org/pull/5005>`__)
7+
* `@davidfischer <http://github.com/davidfischer>`__: Backport jquery 2432 to Read the Docs (`#5001 <https://github.com/rtfd/readthedocs.org/pull/5001>`__)
8+
* `@ericholscher <http://github.com/ericholscher>`__: Remove codecov comments and project coverage CI status (`#4996 <https://github.com/rtfd/readthedocs.org/pull/4996>`__)
9+
* `@stsewd <http://github.com/stsewd>`__: Remove `LOCAL_GIT_BRANCHES` from settings (`#4993 <https://github.com/rtfd/readthedocs.org/pull/4993>`__)
10+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Link update on FAQ page (`#4988 <https://github.com/rtfd/readthedocs.org/pull/4988>`__)
11+
* `@ericholscher <http://github.com/ericholscher>`__: Only use remote branches for our syncing. (`#4984 <https://github.com/rtfd/readthedocs.org/pull/4984>`__)
12+
* `@humitos <http://github.com/humitos>`__: Sanitize output and chunk it at DATA_UPLOAD_MAX_MEMORY_SIZE (`#4982 <https://github.com/rtfd/readthedocs.org/pull/4982>`__)
13+
* `@humitos <http://github.com/humitos>`__: Modify DB field for container_time_limit to be an integer (`#4979 <https://github.com/rtfd/readthedocs.org/pull/4979>`__)
14+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Remove deprecated imports from "urlresolvers" (`#4976 <https://github.com/rtfd/readthedocs.org/pull/4976>`__)
15+
* `@davidfischer <http://github.com/davidfischer>`__: Workaround for a django-storages bug (`#4963 <https://github.com/rtfd/readthedocs.org/pull/4963>`__)
16+
* `@ericholscher <http://github.com/ericholscher>`__: Release 2.8.3 (`#4961 <https://github.com/rtfd/readthedocs.org/pull/4961>`__)
17+
* `@monsij <http://github.com/monsij>`__: Remove -e option (`#4960 <https://github.com/rtfd/readthedocs.org/pull/4960>`__)
18+
* `@nutann3 <http://github.com/nutann3>`__: Update "install Sphinx" URL (`#4959 <https://github.com/rtfd/readthedocs.org/pull/4959>`__)
19+
* `@stsewd <http://github.com/stsewd>`__: Shallow git clone (`#4939 <https://github.com/rtfd/readthedocs.org/pull/4939>`__)
20+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Validate profile form fields (`#4910 <https://github.com/rtfd/readthedocs.org/pull/4910>`__)
21+
* `@davidfischer <http://github.com/davidfischer>`__: Calculate actual ad views (`#4885 <https://github.com/rtfd/readthedocs.org/pull/4885>`__)
22+
* `@humitos <http://github.com/humitos>`__: Allow all /api/v2/ CORS if the Domain is known (`#4880 <https://github.com/rtfd/readthedocs.org/pull/4880>`__)
23+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Disable django.security.DisallowedHost from logging (`#4879 <https://github.com/rtfd/readthedocs.org/pull/4879>`__)
24+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Remove 'Sphinx Template Changes' From Docs (`#4878 <https://github.com/rtfd/readthedocs.org/pull/4878>`__)
25+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Make form for adopting project a choice field (`#4841 <https://github.com/rtfd/readthedocs.org/pull/4841>`__)
26+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Add 'Branding' under the 'Business Info' section and 'Guidelines' on 'Design Docs' (`#4830 <https://github.com/rtfd/readthedocs.org/pull/4830>`__)
27+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Raise 404 at SubdomainMiddleware if the project does not exist. (`#4795 <https://github.com/rtfd/readthedocs.org/pull/4795>`__)
28+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Add help_text in the form for adopting a project (`#4781 <https://github.com/rtfd/readthedocs.org/pull/4781>`__)
29+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Remove /embed API endpoint (`#4771 <https://github.com/rtfd/readthedocs.org/pull/4771>`__)
30+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Improve unexpected error message when build fails (`#4754 <https://github.com/rtfd/readthedocs.org/pull/4754>`__)
31+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Change the way of using login_required decorator (`#4723 <https://github.com/rtfd/readthedocs.org/pull/4723>`__)
32+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Fix the form for adopting a project (`#4721 <https://github.com/rtfd/readthedocs.org/pull/4721>`__)
33+
34+
Version 2.8.3
35+
-------------
36+
37+
:Date: December 05, 2018
38+
39+
* `@nutann3 <http://github.com/nutann3>`__: Update "install Sphinx" URL (`#4959 <https://github.com/rtfd/readthedocs.org/pull/4959>`__)
40+
* `@humitos <http://github.com/humitos>`__: Pin redis to the current stable and compatible version (`#4956 <https://github.com/rtfd/readthedocs.org/pull/4956>`__)
41+
* `@humitos <http://github.com/humitos>`__: Properly set LANG environment variables (`#4954 <https://github.com/rtfd/readthedocs.org/pull/4954>`__)
42+
* `@humitos <http://github.com/humitos>`__: Adapt code to remove and ignore warnings (`#4953 <https://github.com/rtfd/readthedocs.org/pull/4953>`__)
43+
* `@stsewd <http://github.com/stsewd>`__: Shallow git clone (`#4939 <https://github.com/rtfd/readthedocs.org/pull/4939>`__)
44+
* `@stsewd <http://github.com/stsewd>`__: Install latest version of pip (`#4938 <https://github.com/rtfd/readthedocs.org/pull/4938>`__)
45+
* `@stsewd <http://github.com/stsewd>`__: Fix svn update (`#4933 <https://github.com/rtfd/readthedocs.org/pull/4933>`__)
46+
* `@ericholscher <http://github.com/ericholscher>`__: Release 2.8.2 (`#4931 <https://github.com/rtfd/readthedocs.org/pull/4931>`__)
47+
* `@stsewd <http://github.com/stsewd>`__: Remove repeated and dead code (`#4929 <https://github.com/rtfd/readthedocs.org/pull/4929>`__)
48+
* `@stsewd <http://github.com/stsewd>`__: Remove deprecated sudo from travis (`#4919 <https://github.com/rtfd/readthedocs.org/pull/4919>`__)
49+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Validate profile form fields (`#4910 <https://github.com/rtfd/readthedocs.org/pull/4910>`__)
50+
* `@davidfischer <http://github.com/davidfischer>`__: Calculate actual ad views (`#4885 <https://github.com/rtfd/readthedocs.org/pull/4885>`__)
51+
* `@stsewd <http://github.com/stsewd>`__: Sync versions when creating/deleting versions (`#4876 <https://github.com/rtfd/readthedocs.org/pull/4876>`__)
52+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Remove unused project model fields (`#4870 <https://github.com/rtfd/readthedocs.org/pull/4870>`__)
53+
* `@humitos <http://github.com/humitos>`__: All package updates (`#4792 <https://github.com/rtfd/readthedocs.org/pull/4792>`__)
54+
* `@humitos <http://github.com/humitos>`__: Support git unicode branches (`#4433 <https://github.com/rtfd/readthedocs.org/pull/4433>`__)
55+
56+
Version 2.8.2
57+
-------------
58+
59+
:Date: November 28, 2018
60+
61+
* `@stsewd <http://github.com/stsewd>`__: Use .exists in queryset (`#4927 <https://github.com/rtfd/readthedocs.org/pull/4927>`__)
62+
* `@stsewd <http://github.com/stsewd>`__: Don't rmtree symlink (`#4925 <https://github.com/rtfd/readthedocs.org/pull/4925>`__)
63+
* `@stsewd <http://github.com/stsewd>`__: Delete tags with same commit (`#4915 <https://github.com/rtfd/readthedocs.org/pull/4915>`__)
64+
* `@safwanrahman <http://github.com/safwanrahman>`__: Tuning Elasticsearch for search improvements (`#4909 <https://github.com/rtfd/readthedocs.org/pull/4909>`__)
65+
* `@edmondchuc <http://github.com/edmondchuc>`__: Fixed some typos. (`#4906 <https://github.com/rtfd/readthedocs.org/pull/4906>`__)
66+
* `@humitos <http://github.com/humitos>`__: Upgrade stripe Python package to the latest version (`#4904 <https://github.com/rtfd/readthedocs.org/pull/4904>`__)
67+
* `@humitos <http://github.com/humitos>`__: Retry on API failure when connecting from builders (`#4902 <https://github.com/rtfd/readthedocs.org/pull/4902>`__)
68+
* `@stsewd <http://github.com/stsewd>`__: Separate update and checkout steps (`#4901 <https://github.com/rtfd/readthedocs.org/pull/4901>`__)
69+
* `@humitos <http://github.com/humitos>`__: Expose environment variables from database into build commands (`#4894 <https://github.com/rtfd/readthedocs.org/pull/4894>`__)
70+
* `@ericholscher <http://github.com/ericholscher>`__: Use python to expand the cwd instead of environment variables (`#4882 <https://github.com/rtfd/readthedocs.org/pull/4882>`__)
71+
* `@humitos <http://github.com/humitos>`__: Call Celery worker properly (`#4881 <https://github.com/rtfd/readthedocs.org/pull/4881>`__)
72+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Disable django.security.DisallowedHost from logging (`#4879 <https://github.com/rtfd/readthedocs.org/pull/4879>`__)
73+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Remove 'Sphinx Template Changes' From Docs (`#4878 <https://github.com/rtfd/readthedocs.org/pull/4878>`__)
74+
* `@ericholscher <http://github.com/ericholscher>`__: Unbreak the admin on ImportedFile by using raw_id_fields (`#4874 <https://github.com/rtfd/readthedocs.org/pull/4874>`__)
75+
* `@stsewd <http://github.com/stsewd>`__: Check if latest exists before updating identifier (`#4873 <https://github.com/rtfd/readthedocs.org/pull/4873>`__)
76+
* `@ericholscher <http://github.com/ericholscher>`__: Release 2.8.1 (`#4872 <https://github.com/rtfd/readthedocs.org/pull/4872>`__)
77+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Update django-guardian settings (`#4871 <https://github.com/rtfd/readthedocs.org/pull/4871>`__)
78+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Change 'VerisionLockedTimeout' to 'VersionLockedError' in comment. (`#4859 <https://github.com/rtfd/readthedocs.org/pull/4859>`__)
79+
* `@stsewd <http://github.com/stsewd>`__: Hide "edit on" when the version is a tag (`#4851 <https://github.com/rtfd/readthedocs.org/pull/4851>`__)
80+
* `@stsewd <http://github.com/stsewd>`__: Delete untracked tags on fetch (`#4811 <https://github.com/rtfd/readthedocs.org/pull/4811>`__)
81+
* `@humitos <http://github.com/humitos>`__: Appropiate logging when a LockTimeout for VCS is reached (`#4804 <https://github.com/rtfd/readthedocs.org/pull/4804>`__)
82+
* `@stsewd <http://github.com/stsewd>`__: Remove support for multiple configurations in one file (`#4800 <https://github.com/rtfd/readthedocs.org/pull/4800>`__)
83+
* `@stsewd <http://github.com/stsewd>`__: Pipfile support (schema) (`#4782 <https://github.com/rtfd/readthedocs.org/pull/4782>`__)
84+
* `@stsewd <http://github.com/stsewd>`__: Save config on build model (`#4749 <https://github.com/rtfd/readthedocs.org/pull/4749>`__)
85+
* `@invinciblycool <http://github.com/invinciblycool>`__: Redirect to build detail post manual build (`#4622 <https://github.com/rtfd/readthedocs.org/pull/4622>`__)
86+
* `@davidfischer <http://github.com/davidfischer>`__: Enable timezone support and set timezone to UTC (`#4545 <https://github.com/rtfd/readthedocs.org/pull/4545>`__)
87+
* `@chirathr <http://github.com/chirathr>`__: Webhook notification URL size validation check (`#3680 <https://github.com/rtfd/readthedocs.org/pull/3680>`__)
88+
189
Version 2.8.1
290
-------------
391

common

docs/.rstcheck.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[rstcheck]
2-
ignore_directives=automodule,http:get,tabs,tab
2+
ignore_directives=automodule,http:get,tabs,tab,prompt
33
ignore_roles=djangosetting,setting
44
ignore_messages=(Duplicate implicit target name: ".*")|(Hyperlink target ".*" is not referenced)
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* CSS for sphinx-prompt */
2+
3+
pre.highlight {
4+
border: 1px solid #e1e4e5;
5+
overflow-x: auto;
6+
margin: 1px 0 24px 0;
7+
padding: 12px 12px;
8+
}
9+
10+
pre.highlight span.prompt1 {
11+
font-size: 12px;
12+
line-height: 1.4;
13+
}

docs/api/v2.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Project list
5353

5454
**Example request**:
5555

56-
.. sourcecode:: bash
56+
.. prompt:: bash $
5757

58-
$ curl https://readthedocs.org/api/v2/project/?slug=pip
58+
curl https://readthedocs.org/api/v2/project/?slug=pip
5959

6060
**Example response**:
6161

@@ -232,9 +232,9 @@ Build list
232232

233233
**Example request**:
234234

235-
.. sourcecode:: bash
235+
.. prompt:: bash $
236236

237-
$ curl https://readthedocs.org/api/v2/build/?project__slug=pip
237+
curl https://readthedocs.org/api/v2/build/?project__slug=pip
238238

239239
**Example response**:
240240

docs/builds.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Understanding how Read the Docs builds your project will help you with debugging
6969
It should also allow you to take advantage of certain things that happen during the build process.
7070

7171
The first step of the process is that we check out your code from the repository you have given us.
72-
If the code is already checked out, we update the copy to the branch that you have specified in your projects configuration.
72+
If the code is already checked out, we update the copy to the branch that you have specified in your project's configuration.
7373

7474
Then we build the proper backend code for the type of documentation you've selected.
7575

docs/commercial/sharing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sharing
44
.. note:: This feature only exists on our Business offering at `readthedocs.com <https://readthedocs.com/>`_.
55

66
You can share your project with users outside of your company.
7-
There are two way to do this:
7+
There are two ways to do this:
88

99
* by sending them a *secret link*,
1010
* by giving them a *password*.

docs/conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
'djangodocs',
2929
'doc_extensions',
3030
'sphinx_tabs.tabs',
31+
'sphinx-prompt',
3132
]
3233
templates_path = ['_templates']
3334

@@ -82,3 +83,7 @@
8283

8384
# Activate autosectionlabel plugin
8485
autosectionlabel_prefix_document = True
86+
87+
88+
def setup(app):
89+
app.add_stylesheet('css/sphinx_prompt_css.css')

docs/contribute.rst

+14-8
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,26 @@ install `pre-commit`_ and it will automatically run different linting tools
4949
and `yapf`_) to check your changes before you commit them. `pre-commit` will let
5050
you know if there were any problems that is wasn't able to fix automatically.
5151

52-
To run the `pre-commit` command and check your changes::
52+
To run the `pre-commit` command and check your changes:
5353

54-
$ pip install -U pre-commit
55-
$ git add <your-modified-files>
56-
$ pre-commit run
54+
.. prompt:: bash $
5755

58-
or to run against a specific file::
56+
pip install -U pre-commit
57+
git add <your-modified-files>
58+
pre-commit run
5959

60-
$ pre-commit run --files <file.py>
60+
or to run against a specific file:
61+
62+
.. prompt:: bash $
63+
64+
pre-commit run --files <file.py>
6165

6266
`pre-commit` can also be run as a git pre-commit hook. You can set this up
63-
with::
67+
with:
68+
69+
.. prompt:: bash $
6470

65-
$ pre-commit install
71+
pre-commit install
6672

6773
After this installation, the next time you run `git commit` the `pre-commit run`
6874
command will be run immediately and will inform you of the changes and errors.

0 commit comments

Comments
 (0)