Skip to content

Commit a166563

Browse files
committed
Merge branch 'master' of github.com:rtfd/readthedocs.org into gsoc-19-pr-builder
2 parents 7bcb3e1 + 5bdb2f8 commit a166563

Some content is hidden

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

66 files changed

+398
-451
lines changed

CHANGELOG.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
Version 3.5.3
2+
-------------
3+
4+
:Date: June 19, 2019
5+
6+
* `@davidfischer <http://github.com/davidfischer>`__: Treat docs warnings as errors (`#5825 <https://github.com/rtfd/readthedocs.org/pull/5825>`__)
7+
* `@davidfischer <http://github.com/davidfischer>`__: Fix some unclear verbiage (`#5820 <https://github.com/rtfd/readthedocs.org/pull/5820>`__)
8+
* `@davidfischer <http://github.com/davidfischer>`__: Rework documentation index page (`#5819 <https://github.com/rtfd/readthedocs.org/pull/5819>`__)
9+
* `@davidfischer <http://github.com/davidfischer>`__: Upgrade intersphinx to Django 1.11 (`#5818 <https://github.com/rtfd/readthedocs.org/pull/5818>`__)
10+
* `@pyup-bot <http://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 24 (`#5817 <https://github.com/rtfd/readthedocs.org/pull/5817>`__)
11+
* `@humitos <http://github.com/humitos>`__: Disable changing domain when editing the object (`#5816 <https://github.com/rtfd/readthedocs.org/pull/5816>`__)
12+
* `@saadmk11 <http://github.com/saadmk11>`__: Update docs with sitemap sort order change (`#5815 <https://github.com/rtfd/readthedocs.org/pull/5815>`__)
13+
* `@davidfischer <http://github.com/davidfischer>`__: Optimize requests to APIv3 (`#5803 <https://github.com/rtfd/readthedocs.org/pull/5803>`__)
14+
* `@ericholscher <http://github.com/ericholscher>`__: Show build length in the admin (`#5802 <https://github.com/rtfd/readthedocs.org/pull/5802>`__)
15+
* `@stsewd <http://github.com/stsewd>`__: Move search functions (`#5801 <https://github.com/rtfd/readthedocs.org/pull/5801>`__)
16+
* `@ericholscher <http://github.com/ericholscher>`__: A few small improvements to help with search admin stuff (`#5800 <https://github.com/rtfd/readthedocs.org/pull/5800>`__)
17+
* `@stsewd <http://github.com/stsewd>`__: Simplify es indexing (`#5798 <https://github.com/rtfd/readthedocs.org/pull/5798>`__)
18+
* `@humitos <http://github.com/humitos>`__: Use a real SessionBase object on FooterNoSessionMiddleware (`#5797 <https://github.com/rtfd/readthedocs.org/pull/5797>`__)
19+
* `@stsewd <http://github.com/stsewd>`__: Add logging in magic methods (`#5795 <https://github.com/rtfd/readthedocs.org/pull/5795>`__)
20+
* `@stsewd <http://github.com/stsewd>`__: Fix unbound var in search view (`#5794 <https://github.com/rtfd/readthedocs.org/pull/5794>`__)
21+
* `@davidfischer <http://github.com/davidfischer>`__: Mention security issue in the changelog (`#5790 <https://github.com/rtfd/readthedocs.org/pull/5790>`__)
22+
* `@stsewd <http://github.com/stsewd>`__: Index path with original path name (`#5785 <https://github.com/rtfd/readthedocs.org/pull/5785>`__)
23+
* `@stsewd <http://github.com/stsewd>`__: Use querysets from the class not from an instance (`#5783 <https://github.com/rtfd/readthedocs.org/pull/5783>`__)
24+
* `@saadmk11 <http://github.com/saadmk11>`__: Add Build managers and Update Build Querysets. (`#5779 <https://github.com/rtfd/readthedocs.org/pull/5779>`__)
25+
* `@davidfischer <http://github.com/davidfischer>`__: Project advertising page/form update (`#5777 <https://github.com/rtfd/readthedocs.org/pull/5777>`__)
26+
* `@davidfischer <http://github.com/davidfischer>`__: Update docs around opt-out of ads (`#5776 <https://github.com/rtfd/readthedocs.org/pull/5776>`__)
27+
* `@saadmk11 <http://github.com/saadmk11>`__: Sitemap sort order priorities updated (`#5724 <https://github.com/rtfd/readthedocs.org/pull/5724>`__)
28+
* `@dojutsu-user <http://github.com/dojutsu-user>`__: [Design Doc] In Doc Search UI (`#5707 <https://github.com/rtfd/readthedocs.org/pull/5707>`__)
29+
* `@saadmk11 <http://github.com/saadmk11>`__: Pull Request Builder Design Doc (`#5705 <https://github.com/rtfd/readthedocs.org/pull/5705>`__)
30+
* `@humitos <http://github.com/humitos>`__: Support single version subprojects URLs to serve from Django (`#5690 <https://github.com/rtfd/readthedocs.org/pull/5690>`__)
31+
* `@agjohnson <http://github.com/agjohnson>`__: Add a contrib Dockerfile for local build image on Linux (`#4608 <https://github.com/rtfd/readthedocs.org/pull/4608>`__)
32+
133
Version 3.5.2
234
-------------
335

docs/.rstcheck.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[rstcheck]
22
ignore_directives=automodule,http:get,tabs,tab,prompt,http:patch,http:post
33
ignore_roles=djangosetting,setting,featureflags,buildpyversions
4-
ignore_messages=(Duplicate implicit target name: ".*")|(Hyperlink target ".*" is not referenced)
4+
# This error needs to be ignored for now
5+
# See: https://github.com/myint/rstcheck/issues/19
6+
ignore_messages=(Hyperlink target ".*" is not referenced)

docs/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS = -W --keep-going
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
99

10+
# Do not use local Django settings during the docs build
11+
export DJANGO_SETTINGS_SKIP_LOCAL = True
12+
1013
# User-friendly check for sphinx-build
1114
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
1215
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)

docs/advertising/ad-customization.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Customizing Advertising
24
=======================
35

docs/advertising/advertising-details.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,15 @@ Currently we show ads on:
9797
* Sphinx theme provided by Read the Docs
9898
* MkDocs theme provided by Read the Docs (beginning in May 2018)
9999
* Alabaster Sphinx theme
100-
* [Pylons Sphinx Themes](https://github.com/Pylons/pylons-sphinx-themes), including pyramid, pylons, and pylonsfw.
100+
* `Pylons Sphinx Themes <https://github.com/Pylons/pylons-sphinx-themes>`_,
101+
including pyramid, pylons, and pylonsfw.
101102

102103
This list will expand as we strive to put advertising on a
103104
larger percentage of the documentation served by us.
104105
However, we always give advance notice in our issue tracker
105106
and via email about showing ads where none were shown before.
106107

107108

108-
.. _advertising-details-do-not-track:
109-
110109
Do Not Track Policy
111110
-------------------
112111

@@ -115,8 +114,6 @@ For more details, see the :ref:`Do Not Track section <privacy-policy:Do Not Trac
115114
of our privacy policy.
116115

117116

118-
.. _advertising-analytics:
119-
120117
Analytics
121118
---------
122119

docs/advertising/ethical-advertising.rst

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,32 @@ Opting Out
155155

156156
We have added multiple ways to opt out of the advertising on Read the Docs.
157157

158-
Users can go ad-free
159-
by becoming a `Gold Member <https://readthedocs.org/accounts/gold/>`_
160-
or a `Supporter <https://readthedocs.org/sustainability/#donations>`_.
158+
1. You can go completely ad-free
159+
by becoming a `Gold Member <https://readthedocs.org/accounts/gold/>`_
160+
or a `Supporter <https://readthedocs.org/sustainability/#donations>`_.
161161

162-
Users can opt out of seeing paid advertisements on documentation pages:
162+
2. You can opt out of seeing paid advertisements on documentation pages:
163163

164-
* Go to the drop down user menu in the top right of the Read the Docs dashboard and clicking :guilabel:`Settings` (https://readthedocs.org/accounts/edit/).
165-
* On the :guilabel:`Advertising` tab, you can deselect **See paid advertising**.
164+
* Go to the drop down user menu in the top right of the Read the Docs dashboard and clicking :guilabel:`Settings` (https://readthedocs.org/accounts/edit/).
165+
* On the :guilabel:`Advertising` tab, you can deselect **See paid advertising**.
166166

167-
Project owners can also opt out of paid advertisements for their projects.
168-
You can change these options:
167+
You will still see :ref:`community ads <advertising/ethical-advertising:Community Ads>`
168+
for open source projects and conferences.
169169

170-
* Go to your **project** page (`/projects/<slug>/`)
171-
* Go to :guilabel:`Admin` > :guilabel:`Advertising`
172-
* Change your advertising settings
170+
3. Project owners can also opt out of paid advertisements for their projects.
171+
You can change these options:
173172

174-
Project opt out options include:
173+
* Go to your **project** page (`/projects/<slug>/`)
174+
* Go to :guilabel:`Admin` > :guilabel:`Advertising`
175+
* Change your advertising settings
175176

176-
* Supporting us `financially <https://readthedocs.org/accounts/gold/subscription/>`_ by becoming a Gold Member.
177-
This will disable all ads from showing on your project's documentation.
178-
* Supporting us with `your time <http://docs.readthedocs.org/en/latest/contribute.html?>`_ by contributing to the project.
179-
* Moving to our `paid product <https://readthedocs.com/pricing/?>`_ over at readthedocs.com.
180-
* Opting out without doing any of the above. This will make us a little sad, but we understand not everyone has the means to contribute back.
177+
4. If you are part of a company that uses Read the Docs to host documentation for a commercial product,
178+
we offer `paid plans`_ on readthedocs.com that offer a completely ad-free experience, additional build resources,
179+
and features like CDN support and private documentation.
180+
181+
5. If you would like to completely remove advertising from your open source project,
182+
but our commercial plans don't seem like the right fit,
183+
please `get in touch`_ to discuss alternatives to advertising.
184+
185+
.. _paid plans: https://readthedocs.com/pricing/
186+
.. _get in touch: mailto:[email protected]?subject=Alternatives+to+advertising

docs/api/v1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
API v1 (removed)
24
================
35

docs/api/v3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
API v3
24
======
35

docs/commercial/custom_domains.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Once a project is imported under Read the Docs,
88
by default it's hosted under a subdomain on one of our domains.
99
If you need a custom domain, continue on custom domain setup.
1010

11-
Custom domains
12-
--------------
11+
12+
Serving documentation with a custom domain
13+
------------------------------------------
1314

1415
Projects can also be hosted under a custom domain.
1516
If you'd prefer to use your own domain name instead of our default hosting domain,

docs/config-file/v1.rst

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ version
3737
3838
version: 1
3939
40-
.. _yaml__formats:
4140
4241
formats
4342
~~~~~~~
@@ -64,7 +63,6 @@ Set as an empty list ``[]`` to build none of the formats.
6463
- epub
6564
- pdf
6665
67-
.. _yaml__requirements_file:
6866
6967
requirements_file
7068
~~~~~~~~~~~~~~~~~
@@ -78,7 +76,6 @@ The path to your pip requirements file.
7876
7977
requirements_file: requirements/docs.txt
8078
81-
.. _yaml__conda:
8279
8380
conda
8481
~~~~~
@@ -100,14 +97,12 @@ The file option specified the Conda `environment file`_ to use.
10097
10198
.. note:: Conda is only supported via the YAML file.
10299

103-
.. _yaml__build:
104100

105101
build
106102
~~~~~
107103

108104
The ``build`` block configures specific aspects of the documentation build.
109105

110-
.. _yaml__build__image:
111106

112107
build.image
113108
```````````
@@ -133,15 +128,13 @@ as defined here:
133128
python:
134129
version: 3.6
135130
136-
.. _yaml__python:
137131
138132
python
139133
~~~~~~
140134

141135
The ``python`` block allows you to configure aspects of the Python executable
142136
used for building documentation.
143137

144-
.. _yaml__python__version:
145138

146139
python.version
147140
``````````````
@@ -157,8 +150,8 @@ the highest supported minor version will be selected.
157150

158151
The supported Python versions depends on the version of the build image your
159152
project is using. The default build image that is used to build
160-
documentation contains support for Python ``2.7`` and ``3.7``. See the
161-
:ref:`yaml__build__image` for more information on supported Python versions.
153+
documentation contains support for Python ``2.7`` and ``3.7``.
154+
See :ref:`config-file/v1:build.image` for more information on supported Python versions.
162155

163156
.. code-block:: yaml
164157
@@ -181,7 +174,6 @@ See :ref:`builds:The build environment` for more details.
181174
python:
182175
use_system_site_packages: true
183176
184-
.. _yaml__python__setup_py_install:
185177
186178
python.setup_py_install
187179
```````````````````````
@@ -197,7 +189,6 @@ When true, install your project into the Virtualenv with
197189
python:
198190
setup_py_install: true
199191
200-
.. _yaml__python__pip_install:
201192
202193
python.pip_install
203194
``````````````````
@@ -243,7 +234,6 @@ documentation.
243234
..
244235
.. conf_file: project2/docs/conf.py
245236
246-
.. _yaml__python__extra_requirements:
247237
248238
python.extra_requirements
249239
`````````````````````````
@@ -294,7 +284,6 @@ Behind the scene the following Pip command will be run:
294284
pip install .[tests,docs]
295285

296286

297-
.. _issue: https://github.com/rtfd/readthedocs.org/issues
298287
.. _environment file: http://conda.pydata.org/docs/using/envs.html#share-an-environment
299288
.. _extra requirements: http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies
300289
.. _package default dependencies: http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies

docs/contribute.rst

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Contributing to development
2525

2626
If you want to deep dive and help out with development on Read the Docs, then
2727
first get the project installed locally according to the
28-
:doc:`Installation Guide <install>`. After that is done we
28+
:doc:`Installation Guide <development/install>`. After that is done we
2929
suggest you have a look at tickets in our issue tracker that are labelled `Good
3030
First Issue`_. These are meant to be a great way to get a smooth start and
3131
won't put you in front of the most complex parts of the system.
@@ -103,7 +103,35 @@ Contributing to documentation
103103
Documentation for Read the Docs itself is hosted by Read the Docs at https://docs.readthedocs.io (likely the website you are currently reading).
104104

105105
There are guidelines around writing and formatting documentation for the project.
106-
For full details, including how to build it, see :doc:`docs`.
106+
For full details, including how to build it, see :doc:`/development/docs`.
107+
108+
109+
Developer documentation
110+
-----------------------
111+
112+
These are guides and helpful documentation to running your own local version of Read the Docs
113+
for development or taking the open source Read the Docs codebase
114+
for your own :doc:`custom installation <custom_installs/index>`.
115+
116+
.. toctree::
117+
:maxdepth: 1
118+
119+
development/install
120+
development/search
121+
development/architecture
122+
development/tests
123+
development/docs
124+
development/design/index
125+
development/standards
126+
development/buildenvironments
127+
development/symlinks
128+
development/settings
129+
development/i18n
130+
development/issue-labels
131+
development/design
132+
RTD Theme <https://sphinx-rtd-theme.readthedocs.io/en/latest/>
133+
134+
107135

108136
Triaging tickets
109137
----------------
@@ -244,7 +272,7 @@ few more at hand to further categorize issues.
244272
handled during a sprint. They are very focused and encapsulated.
245273

246274
For a full list of available labels and their meanings, see
247-
:doc:`issue-labels`.
275+
:doc:`/development/issue-labels`.
248276

249277
Helpful links for triaging
250278
~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/custom_installs/customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Customizing your install
22
========================
33

4-
Read the Docs has a lot of :doc:`/settings` that help customize your install.
4+
Read the Docs has a lot of :doc:`/development/settings` that help customize your install.
55
This document will outline some of the more useful ways that these can be combined.
66

77
Have a local settings file

docs/custom_installs/local_rtd_vm.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To host your documentation on a local RTD installation, set it up in your VM:
4747
cd readthedocs.org
4848
sudo pip install -r requirements.txt
4949

50-
Possible Error and Resolution
51-
`````````````````````````````
50+
Possible errors with a local RTD setup
51+
``````````````````````````````````````
5252

5353
**Error**: ``error: command 'gcc' failed with exit status 1``
5454

@@ -116,8 +116,8 @@ Go to the dashboard at ``http://[VM IP ADDRESS]:8000/dashboard`` and follow the
116116

117117
This generates the HTML documentation site using the default Sphinx theme. Verify the output in your local documentation folder under ``../build/html``
118118

119-
Possible Error and Resolution
120-
`````````````````````````````
119+
Possible errors administering a RTD server
120+
``````````````````````````````````````````
121121

122122
**Error**: Couldn't access Git Corp from VM.
123123

@@ -136,9 +136,9 @@ Possible Error and Resolution
136136
3. Now, SSH to the VM.
137137
4. Open the ``id_rsa`` file in the VM:
138138

139-
.. prompt:: bash $
139+
.. prompt:: bash $
140140

141-
vim /home/<username>/.ssh/id_rsa
141+
vim /home/<username>/.ssh/id_rsa
142142

143143
5. Paste the RSA key copied from your machine and save file (``Esc``. ``:wq!``).
144144

File renamed without changes.

docs/design.rst renamed to docs/development/design.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ documentation using the default RTD style.
3333
Contributing
3434
------------
3535

36-
Contributions should follow the :doc:`contribute` guidelines where applicable -- ideally you'll
36+
Contributions should follow the :doc:`../contribute` guidelines where applicable -- ideally you'll
3737
create a pull request against the `Read the Docs GitHub project`_ from your forked repo and include
3838
a brief description of what you added / removed / changed, as well as an attached image (you can just
3939
take a screenshot and drop it into the PR creation form) of the effects of your changes.
File renamed without changes.

docs/design/in-doc-search-ui.rst renamed to docs/development/design/in-doc-search-ui.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ This is a GSoC'19 project.
1818

1919
The final result may look something like this:
2020

21-
.. figure:: ../_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
21+
.. figure:: ../../_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
2222
:align: center
23-
:target: ../_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
23+
:target: ../../_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
2424

2525
Short demo
2626

@@ -49,7 +49,7 @@ Existing Search Implementation
4949

5050
We have a detailed documentation explaing the underlying architecture of our search backend
5151
and how we index documents to our Elasticsearch index.
52-
You can read about it :doc:`here <../development/search>`.
52+
You can read about it :doc:`here <../search>`.
5353

5454

5555
Proposed Architecture for In-Doc Search UI
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)