Skip to content

Commit 18f5420

Browse files
committed
2 parents f85f983 + 39a0d5f commit 18f5420

File tree

104 files changed

+2063
-1358
lines changed

Some content is hidden

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

104 files changed

+2063
-1358
lines changed

.github/mergeable.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
# ProBot Mergeable Bot
22
# https://github.com/jusx/mergeable
33

4+
version: 2
45
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.'
6+
- when: pull_request.*
7+
validate:
8+
- do: title
9+
# Do not merge when it is marked work in progress (WIP)
10+
must_exclude:
11+
regex: ^\[WIP\]
12+
message: This is work in progress. Do not merge yet.
13+
- do: description
14+
must_exclude:
15+
# Do not allow 'DO NOT MERGE' phrase on PR's description.
16+
regex: 'DO NOT MERGE'
17+
message: 'Description says that the PR should not be merged yet.'
18+
no_empty:
19+
# Do not allow empty descriptions on PR.
20+
enabled: true
21+
message: 'Description can not be empty.'
22+
- do: label
23+
# Do not allow PR with label 'PR: work in progress' or 'Status: blocked'
24+
must_exclude:
25+
regex: 'PR: work in progress|Status: blocked'
26+
message: 'This PR is work in progress or it is still blocked.'

.pyup.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# configure updates globally
2+
# default: all
3+
# allowed: all, insecure, False
4+
update: all
5+
6+
# configure dependency pinning globally
7+
# default: True
8+
# allowed: True, False
9+
pin: True
10+
11+
# update schedule
12+
# default: empty
13+
# allowed: "every day", "every week", ..
14+
schedule: "every week"
15+
16+
# search for requirement files
17+
# default: True
18+
# allowed: True, False
19+
search: True
20+
21+
# configure the branch prefix the bot is using
22+
# default: pyup-
23+
branch_prefix: pyup/
24+
25+
# set a global prefix for PRs
26+
# default: empty
27+
pr_prefix: "pyup: "
28+
29+
# allow to close stale PRs
30+
# default: True
31+
close_prs: True

CHANGELOG.rst

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,83 @@
1+
Version 3.2.2
2+
-------------
3+
4+
:Date: February 13, 2019
5+
6+
* `@ericholscher <http://github.com/ericholscher>`__: Support old jquery where responseJSON doesn't exist (`#5285 <https://github.com/rtfd/readthedocs.org/pull/5285>`__)
7+
* `@humitos <http://github.com/humitos>`__: pyup.yml syntax fixed (`#5284 <https://github.com/rtfd/readthedocs.org/pull/5284>`__)
8+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Fix error of travis (rename migration file) (`#5282 <https://github.com/rtfd/readthedocs.org/pull/5282>`__)
9+
* `@humitos <http://github.com/humitos>`__: pyup YAML configuration file (`#5279 <https://github.com/rtfd/readthedocs.org/pull/5279>`__)
10+
* `@pyup-bot <http://github.com/pyup-bot>`__: Pin ipdb to latest version 0.11 (`#5278 <https://github.com/rtfd/readthedocs.org/pull/5278>`__)
11+
* `@pyup-bot <http://github.com/pyup-bot>`__: Pin datadiff to latest version 2.0.0 (`#5277 <https://github.com/rtfd/readthedocs.org/pull/5277>`__)
12+
* `@pyup-bot <http://github.com/pyup-bot>`__: Pin pytest-cov to latest version 2.6.1 (`#5276 <https://github.com/rtfd/readthedocs.org/pull/5276>`__)
13+
* `@pyup-bot <http://github.com/pyup-bot>`__: Pin pillow to latest version 5.4.1 (`#5275 <https://github.com/rtfd/readthedocs.org/pull/5275>`__)
14+
* `@pyup-bot <http://github.com/pyup-bot>`__: Update elasticsearch to 6.3.1 (`#5274 <https://github.com/rtfd/readthedocs.org/pull/5274>`__)
15+
* `@discdiver <http://github.com/discdiver>`__: clarify github integration needs https:// prepended (`#5273 <https://github.com/rtfd/readthedocs.org/pull/5273>`__)
16+
* `@humitos <http://github.com/humitos>`__: Setup and configure pyup.io (`#5272 <https://github.com/rtfd/readthedocs.org/pull/5272>`__)
17+
* `@humitos <http://github.com/humitos>`__: Update all Python dependencies (`#5269 <https://github.com/rtfd/readthedocs.org/pull/5269>`__)
18+
* `@davidfischer <http://github.com/davidfischer>`__: Add note about security issue (`#5263 <https://github.com/rtfd/readthedocs.org/pull/5263>`__)
19+
* `@ericholscher <http://github.com/ericholscher>`__: Don’t delay search delete on project delete (`#5262 <https://github.com/rtfd/readthedocs.org/pull/5262>`__)
20+
* `@agjohnson <http://github.com/agjohnson>`__: Automate docs version from our setup.cfg (`#5259 <https://github.com/rtfd/readthedocs.org/pull/5259>`__)
21+
* `@agjohnson <http://github.com/agjohnson>`__: Add admin actions for building versions (`#5255 <https://github.com/rtfd/readthedocs.org/pull/5255>`__)
22+
* `@ericholscher <http://github.com/ericholscher>`__: Give the 404 page a title. (`#5252 <https://github.com/rtfd/readthedocs.org/pull/5252>`__)
23+
* `@humitos <http://github.com/humitos>`__: Make our SUFFIX default selection py2/3 compatible (`#5251 <https://github.com/rtfd/readthedocs.org/pull/5251>`__)
24+
* `@ericholscher <http://github.com/ericholscher>`__: Release 3.2.1 (`#5248 <https://github.com/rtfd/readthedocs.org/pull/5248>`__)
25+
* `@ericholscher <http://github.com/ericholscher>`__: Remove excluding files on search. (`#5246 <https://github.com/rtfd/readthedocs.org/pull/5246>`__)
26+
* `@gorshunovr <http://github.com/gorshunovr>`__: Change version references to :latest tag (`#5245 <https://github.com/rtfd/readthedocs.org/pull/5245>`__)
27+
* `@humitos <http://github.com/humitos>`__: Remove py2 compatibility (`#5241 <https://github.com/rtfd/readthedocs.org/pull/5241>`__)
28+
* `@stsewd <http://github.com/stsewd>`__: Allow to override trigger_build from demo project (`#5236 <https://github.com/rtfd/readthedocs.org/pull/5236>`__)
29+
* `@ericholscher <http://github.com/ericholscher>`__: Change some info logging to debug to clean up build output (`#5233 <https://github.com/rtfd/readthedocs.org/pull/5233>`__)
30+
* `@stsewd <http://github.com/stsewd>`__: Fake auth middleware in tests (`#5206 <https://github.com/rtfd/readthedocs.org/pull/5206>`__)
31+
* `@EJEP <http://github.com/EJEP>`__: Clarify 'more info' link in admin settings page (`#5180 <https://github.com/rtfd/readthedocs.org/pull/5180>`__)
32+
* `@rexzing <http://github.com/rexzing>`__: Docs reformatting with :guilabel: (`#5161 <https://github.com/rtfd/readthedocs.org/pull/5161>`__)
33+
34+
Version 3.2.1
35+
-------------
36+
37+
:Date: February 07, 2019
38+
39+
* `@ericholscher <http://github.com/ericholscher>`__: Remove excluding files on search. (`#5246 <https://github.com/rtfd/readthedocs.org/pull/5246>`__)
40+
* `@ericholscher <http://github.com/ericholscher>`__: Don't update search on HTMLFile save (`#5244 <https://github.com/rtfd/readthedocs.org/pull/5244>`__)
41+
* `@ericholscher <http://github.com/ericholscher>`__: Be more defensive in our 404 handler (`#5243 <https://github.com/rtfd/readthedocs.org/pull/5243>`__)
42+
* `@humitos <http://github.com/humitos>`__: Install sphinx-notfound-page for building 404.html custom page (`#5242 <https://github.com/rtfd/readthedocs.org/pull/5242>`__)
43+
* `@humitos <http://github.com/humitos>`__: Remove py2 compatibility (`#5241 <https://github.com/rtfd/readthedocs.org/pull/5241>`__)
44+
* `@ericholscher <http://github.com/ericholscher>`__: Release 3.2.0 (`#5240 <https://github.com/rtfd/readthedocs.org/pull/5240>`__)
45+
46+
Version 3.2.0
47+
-------------
48+
49+
:Date: February 06, 2019
50+
51+
* `@ericholscher <http://github.com/ericholscher>`__: Support passing an explicit `index_name` for search indexing (`#5239 <https://github.com/rtfd/readthedocs.org/pull/5239>`__)
52+
* `@davidfischer <http://github.com/davidfischer>`__: Tweak some ad styles (`#5237 <https://github.com/rtfd/readthedocs.org/pull/5237>`__)
53+
* `@stsewd <http://github.com/stsewd>`__: Fix conda issue link (`#5226 <https://github.com/rtfd/readthedocs.org/pull/5226>`__)
54+
* `@humitos <http://github.com/humitos>`__: Add Santos to the development team (`#5224 <https://github.com/rtfd/readthedocs.org/pull/5224>`__)
55+
* `@ericholscher <http://github.com/ericholscher>`__: Update our GSOC page for 2019 (`#5210 <https://github.com/rtfd/readthedocs.org/pull/5210>`__)
56+
* `@humitos <http://github.com/humitos>`__: Do not allow to merge 'Status: blocked' PRs (`#5205 <https://github.com/rtfd/readthedocs.org/pull/5205>`__)
57+
* `@stsewd <http://github.com/stsewd>`__: Inject user to middleware tests (`#5203 <https://github.com/rtfd/readthedocs.org/pull/5203>`__)
58+
* `@ericholscher <http://github.com/ericholscher>`__: Remove approvals requirement from mergable (`#5200 <https://github.com/rtfd/readthedocs.org/pull/5200>`__)
59+
* `@agjohnson <http://github.com/agjohnson>`__: Update project notification copy to past tense (`#5199 <https://github.com/rtfd/readthedocs.org/pull/5199>`__)
60+
* `@stsewd <http://github.com/stsewd>`__: Remove feature flag for v2 (`#5198 <https://github.com/rtfd/readthedocs.org/pull/5198>`__)
61+
* `@ericholscher <http://github.com/ericholscher>`__: Refactor search code (`#5197 <https://github.com/rtfd/readthedocs.org/pull/5197>`__)
62+
* `@stsewd <http://github.com/stsewd>`__: Update mergeable settings to v2 (`#5196 <https://github.com/rtfd/readthedocs.org/pull/5196>`__)
63+
* `@stsewd <http://github.com/stsewd>`__: Fix mergeable bot (`#5195 <https://github.com/rtfd/readthedocs.org/pull/5195>`__)
64+
* `@stsewd <http://github.com/stsewd>`__: Fix broken links for badges (`#5190 <https://github.com/rtfd/readthedocs.org/pull/5190>`__)
65+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Change badge style (`#5189 <https://github.com/rtfd/readthedocs.org/pull/5189>`__)
66+
* `@humitos <http://github.com/humitos>`__: Allow source_suffix to be a dictionary (`#5183 <https://github.com/rtfd/readthedocs.org/pull/5183>`__)
67+
* `@humitos <http://github.com/humitos>`__: Upgrade all packages removing py2 compatibility (`#5179 <https://github.com/rtfd/readthedocs.org/pull/5179>`__)
68+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Small docs fix (`#5176 <https://github.com/rtfd/readthedocs.org/pull/5176>`__)
69+
* `@stsewd <http://github.com/stsewd>`__: Sync all services even if one social accoun fails (`#5171 <https://github.com/rtfd/readthedocs.org/pull/5171>`__)
70+
* `@ericholscher <http://github.com/ericholscher>`__: Release 3.1.0 (`#5170 <https://github.com/rtfd/readthedocs.org/pull/5170>`__)
71+
* `@rvmzes <http://github.com/rvmzes>`__: SyntaxError caused by comma in python3 (`#5156 <https://github.com/rtfd/readthedocs.org/pull/5156>`__)
72+
* `@humitos <http://github.com/humitos>`__: Use latest docker images as default (`#5155 <https://github.com/rtfd/readthedocs.org/pull/5155>`__)
73+
* `@stsewd <http://github.com/stsewd>`__: Remove logic for guessing slug from an unregistered domain (`#5143 <https://github.com/rtfd/readthedocs.org/pull/5143>`__)
74+
* `@humitos <http://github.com/humitos>`__: Allow custom 404.html on projects (`#5130 <https://github.com/rtfd/readthedocs.org/pull/5130>`__)
75+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Docs for feature flag (`#5043 <https://github.com/rtfd/readthedocs.org/pull/5043>`__)
76+
* `@stsewd <http://github.com/stsewd>`__: Remove usage of project.documentation_type in tasks (`#4896 <https://github.com/rtfd/readthedocs.org/pull/4896>`__)
77+
* `@ericholscher <http://github.com/ericholscher>`__: Reapply the Elastic Search upgrade to `master` (`#4722 <https://github.com/rtfd/readthedocs.org/pull/4722>`__)
78+
* `@stsewd <http://github.com/stsewd>`__: Config file v2 docs (`#4451 <https://github.com/rtfd/readthedocs.org/pull/4451>`__)
79+
* `@stsewd <http://github.com/stsewd>`__: Set python3 as default interpreter (`#3581 <https://github.com/rtfd/readthedocs.org/pull/3581>`__)
80+
181
Version 3.1.0
282
-------------
383

common

docs/.rstcheck.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[rstcheck]
22
ignore_directives=automodule,http:get,tabs,tab,prompt
3-
ignore_roles=djangosetting,setting
3+
ignore_roles=djangosetting,setting,featureflags,buildpyversions
44
ignore_messages=(Duplicate implicit target name: ".*")|(Hyperlink target ".*" is not referenced)

docs/advertising/ethical-advertising.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Users can opt out of seeing paid advertisements on documentation pages:
160160
Project owners can also opt out of paid advertisements for their projects.
161161
You can change these options:
162162

163-
* Click on your :guilabel:`Project` page (`/projects/<slug>/`)
163+
* Go to your **project** page (`/projects/<slug>/`)
164164
* Go to :guilabel:`Admin` > :guilabel:`Advertising`
165165
* Change your advertising settings
166166

docs/badges.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ since it will stay up to date with your Read the Docs project::
7171

7272
.. _Read the Docs README: https://github.com/rtfd/readthedocs.org/blob/master/README.rst
7373
.. _project page: https://readthedocs.org/projects/pip/
74-
.. |green| image:: https://media.readthedocs.org/static/projects/badges/passing-flat.svg
75-
.. |red| image:: https://media.readthedocs.org/static/projects/badges/failing-flat.svg
76-
.. |yellow| image:: https://media.readthedocs.org/static/projects/badges/unknown-flat.svg
74+
.. |green| image:: https://assets.readthedocs.org/static/projects/badges/passing-flat.svg
75+
.. |red| image:: https://assets.readthedocs.org/static/projects/badges/failing-flat.svg
76+
.. |yellow| image:: https://assets.readthedocs.org/static/projects/badges/unknown-flat.svg
7777
.. |nbsp| unicode:: 0xA0
7878
:trim:

docs/builds.rst

Lines changed: 4 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if you provide a good reason your documentation needs more resources.
1818
You can see the current Docker build images that we use in our `docker repository <https://github.com/rtfd/readthedocs-docker-images>`_.
1919
`Docker Hub <https://hub.docker.com/r/readthedocs/build/>`_ also shows the latest set of images that have been built.
2020

21-
Currently in production we're using the ``readthedocs/build:2.0`` docker image as our default image.
21+
Currently in production we're using the ``readthedocs/build:latest`` docker image as our default image.
2222

2323
How we build documentation
2424
--------------------------
@@ -118,8 +118,8 @@ The build environment
118118
---------------------
119119

120120
The build process is executed inside Docker containers,
121-
by default the image used is ``readthedocs/build:2.0``,
122-
but you can change that using a :doc:`configuration file <yaml-config>`.
121+
by default the image used is ``readthedocs/build:latest``,
122+
but you can change that using a :doc:`config-file/index`.
123123

124124
.. note::
125125

@@ -133,57 +133,7 @@ but you can change that using a :doc:`configuration file <yaml-config>`.
133133
If you want to know the specific version of a package that is installed in the image
134134
you can check the `Ubuntu package search page <https://packages.ubuntu.com/>`__.
135135

136-
2.0 (stable)
137-
~~~~~~~~~~~~
138-
139-
:O.S: Ubuntu 16.04
140-
:Conda: Miniconda 4.3.31
141-
:Python:
142-
* ``m2crypto``
143-
* ``matplolib``
144-
* ``numpy``
145-
* ``pandas``
146-
* ``pip``
147-
* ``scipy``
148-
:Other packages:
149-
* ``doxygen``
150-
* ``graphviz``
151-
* ``libevent``
152-
* ``libjpeg``
153-
* ``libxml2-dev``
154-
* ``libxslt1.1``
155-
* ``pandoc``
156-
* ``textlive-full``
157-
158-
`More details <https://github.com/rtfd/readthedocs-docker-images/blob/releases/2.x/Dockerfile>`__
159-
160-
3.0 (latest)
161-
~~~~~~~~~~~~
162-
163-
:O.S: Ubuntu 16.04
164-
:Conda: Miniconda 4.4.10
165-
:Python:
166-
* ``matplolib``
167-
* ``numpy``,
168-
* ``pandas``
169-
* ``pip``
170-
* ``scipy``
171-
:JavaScript:
172-
* ``jsdoc``
173-
* ``nodejs``
174-
* ``npm``
175-
:Other packages:
176-
* ``doxygen``
177-
* ``libevent-dev``
178-
* ``libgraphviz-dev``
179-
* ``libjpeg``
180-
* ``libxml2-dev``
181-
* ``libxslt1-dev``
182-
* ``pandoc``
183-
* ``plantuml``
184-
* ``textlive-full``
185-
186-
`More details <https://github.com/rtfd/readthedocs-docker-images/blob/releases/3.x/Dockerfile>`__
136+
More details on software installed in images could be found by browsing specific branch in `rtfd/readthedocs-docker-images <https://github.com/rtfd/readthedocs-docker-images>`__ repository.
187137

188138
Writing your own builder
189139
------------------------

docs/conda.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ This work was funded by `Clinical Graphics`_ -- many thanks for their support of
1414
Activating Conda
1515
----------------
1616

17-
Conda Support is the first feature enabled with :doc:`yaml-config`.
18-
You can enable it by creating a `readthedocs.yml` file in the root of your
19-
repository with the contents:
20-
21-
.. code-block:: yaml
22-
23-
conda:
24-
file: environment.yml
17+
Conda support is avalible using a :doc:`config-file/index`, see :ref:`config-file/v2:conda`.
2518

2619
This Conda environment will also have Sphinx and other build time dependencies installed.
2720
It will use the same order of operations that we support currently:
@@ -42,4 +35,3 @@ we can't safely install it as a normal dependency into the normal Python virtual
4235

4336
.. _issue: https://github.com/rtfd/readthedocs.org/issues
4437
.. _Clinical Graphics: https://www.clinicalgraphics.com/
45-

docs/conf.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import os
66
import sys
7+
from configparser import RawConfigParser
78

89
import sphinx_rtd_theme
910

@@ -18,6 +19,13 @@
1819
django.setup()
1920

2021

22+
def get_version():
23+
"""Return package version from setup.cfg."""
24+
config = RawConfigParser()
25+
config.read(os.path.join('..', 'setup.cfg'))
26+
return config.get('metadata', 'version')
27+
28+
2129
sys.path.append(os.path.abspath('_ext'))
2230
extensions = [
2331
'sphinx.ext.autosectionlabel',
@@ -29,6 +37,7 @@
2937
'sphinx_tabs.tabs',
3038
'sphinx-prompt',
3139
'recommonmark',
40+
'notfound.extension',
3241
]
3342
templates_path = ['_templates']
3443

@@ -39,7 +48,7 @@
3948
copyright = '2010-{}, Read the Docs, Inc & contributors'.format(
4049
timezone.now().year
4150
)
42-
version = '2.7'
51+
version = get_version()
4352
release = version
4453
exclude_patterns = ['_build']
4554
default_role = 'obj'
@@ -81,6 +90,19 @@
8190
# Activate autosectionlabel plugin
8291
autosectionlabel_prefix_document = True
8392

93+
# sphinx-notfound-page
94+
# https://github.com/rtfd/sphinx-notfound-page
95+
notfound_context = {
96+
'title': 'Page Not Found',
97+
'body': '''
98+
<h1>Page Not Found</h1>
99+
100+
<p>Sorry, we couldn't find that page.</p>
101+
102+
<p>Try using the search box or go to the homepage.</p>
103+
''',
104+
}
105+
84106

85107
def setup(app):
86108
app.add_stylesheet('css/sphinx_prompt_css.css')

docs/config-file/index.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Configuration File
2+
==================
3+
4+
In addition to using the admin panel of your project to configure your project,
5+
you can use a configuration file in the root of your project.
6+
The configuration file can be named as:
7+
8+
- ``readthedocs.yml``
9+
- ``readthedocs.yaml``
10+
- ``.readthedocs.yml``
11+
- ``.readthedocs.yaml``
12+
13+
The main advantages of using a configuration file over the web interface are:
14+
15+
- Some settings are only available using a configuration file
16+
- The settings are per version rather than per project.
17+
- The settings live in your VCS.
18+
- Reproducible build environments over time.
19+
20+
.. tip::
21+
22+
Using a configuration file is the recommended way of using Read the Docs.
23+
24+
.. toctree::
25+
:maxdepth: 3
26+
27+
Version 2 <v2>
28+
Version 1 <v1>

0 commit comments

Comments
 (0)