Skip to content

Commit 20c671f

Browse files
committed
Merge branch 'master' into remove-usage-of-project-doctype
2 parents 93d3e63 + aace732 commit 20c671f

File tree

415 files changed

+11844
-10017
lines changed

Some content is hidden

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

415 files changed

+11844
-10017
lines changed

.codecov.yml

Lines changed: 5 additions & 2 deletions
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

Lines changed: 9 additions & 0 deletions
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/mergeable.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ProBot Mergeable Bot
2+
# https://github.com/jusx/mergeable
3+
4+
mergeable:
5+
pull_requests:
6+
approvals:
7+
# Minimum of approvals needed.
8+
min: 1
9+
message: 'The PR must have a minimum of 1 approvals.'
10+
11+
description:
12+
no_empty:
13+
# Do not allow empty descriptions on PR.
14+
enabled: false
15+
message: 'Description can not be empty.'
16+
17+
must_exclude:
18+
# Do not allow 'DO NOT MERGE' phrase on PR's description.
19+
regex: 'DO NOT MERGE'
20+
message: 'Description says that the PR should not be merged yet.'
21+
22+
# Do not allow 'WIP' on PR's title.
23+
title: 'WIP'
24+
25+
label:
26+
# Do not allow PR with label 'PR: work in progress'
27+
must_exclude: 'PR: work in progress'
28+
message: 'This PR is work in progress.'

.github/no-response.yml

Lines changed: 17 additions & 0 deletions
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

Lines changed: 26 additions & 0 deletions
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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.DS_Store
88
.cache
99
.coverage
10+
.coverage.*
1011
.idea
1112
.vagrant
1213
.vscode
@@ -22,7 +23,7 @@ celerybeat-schedule.*
2223
deploy/.vagrant
2324
dist/*
2425
local_settings.py
25-
locks/*
26+
locks/**
2627
logs/*
2728
media/dash
2829
media/epub

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ formats: all
33
sphinx:
44
configuration: docs/conf.py
55
python:
6-
requirements: requirements.txt
6+
requirements: requirements/local-docs-build.txt

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: python
22
python:
3-
- 2.7
43
- 3.6
5-
sudo: false
6-
env:
7-
- ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
84
matrix:
95
include:
6+
- python: 3.6
7+
env: TOXENV=py36 ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
108
- python: 3.6
119
env: TOXENV=docs
1210
- python: 3.6
@@ -46,6 +44,6 @@ notifications:
4644

4745
branches:
4846
only:
49-
- master
47+
- master
5048
- rel # Community release branch
5149
- relcorp # Corporate release branch

CHANGELOG.rst

Lines changed: 141 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010-2017 Read the Docs, Inc & contributors
1+
Copyright (c) 2010-2019 Read the Docs, Inc & contributors
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ when you push to GitHub.
7878
License
7979
-------
8080

81-
`MIT`_ © 2010-2017 Read the Docs, Inc & contributors
81+
`MIT`_ © 2010-2019 Read the Docs, Inc & contributors
8282

8383
.. _MIT: LICENSE

common

docs/.rstcheck.cfg

Lines changed: 1 addition & 1 deletion
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)
Lines changed: 13 additions & 0 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 6 additions & 1 deletion
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

@@ -225,3 +225,8 @@ The *Sphinx* and *Mkdocs* builders set the following RTD-specific environment va
225225
+-------------------------+--------------------------------------------------+----------------------+
226226
| ``READTHEDOCS_PROJECT`` | The RTD name of the project which is being built | ``myexampleproject`` |
227227
+-------------------------+--------------------------------------------------+----------------------+
228+
229+
.. tip::
230+
231+
In case extra environment variables are needed to the build process (like secrets, tokens, etc),
232+
you can add them going to **Admin > Environment Variables** in your project. See :doc:`guides/environment-variables`.

docs/commercial/sharing.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77

88
import sphinx_rtd_theme
9-
from recommonmark.parser import CommonMarkParser
109

1110
sys.path.insert(0, os.path.abspath('..'))
1211
sys.path.append(os.path.dirname(__file__))
@@ -28,13 +27,12 @@
2827
'djangodocs',
2928
'doc_extensions',
3029
'sphinx_tabs.tabs',
30+
'sphinx-prompt',
31+
'recommonmark',
3132
]
3233
templates_path = ['_templates']
3334

3435
source_suffix = ['.rst', '.md']
35-
source_parsers = {
36-
'.md': CommonMarkParser,
37-
}
3836

3937
master_doc = 'index'
4038
project = u'Read the Docs'
@@ -82,3 +80,7 @@
8280

8381
# Activate autosectionlabel plugin
8482
autosectionlabel_prefix_document = True
83+
84+
85+
def setup(app):
86+
app.add_stylesheet('css/sphinx_prompt_css.css')

docs/contribute.rst

Lines changed: 14 additions & 8 deletions
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)