Skip to content

Commit 8d96e51

Browse files
committed
Merge branch 'master' into sss-integration-guide
2 parents 56bdb60 + d2157c8 commit 8d96e51

File tree

84 files changed

+2258
-356
lines changed

Some content is hidden

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

84 files changed

+2258
-356
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ addons:
1010
jobs:
1111
include:
1212
- python: 3.6
13-
env: TOXENV=py36,codecov TOX_POSARGS='' ES_VERSION=6.2.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
13+
env: TOXENV=py36,codecov TOX_POSARGS='' ES_VERSION=6.5.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
1414
- python: 3.6
1515
env: TOXENV=docs
1616
- python: 3.6

CHANGELOG.rst

+73
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1+
Version 5.4.2
2+
-------------
3+
4+
:Date: September 09, 2020
5+
6+
* `@humitos <https://github.com/humitos>`__: Show "Connected Services" form errors to the user (`#7469 <https://github.com/readthedocs/readthedocs.org/pull/7469>`__)
7+
* `@humitos <https://github.com/humitos>`__: Allow to extend OrganizationTeamBasicForm from -corporate (`#7467 <https://github.com/readthedocs/readthedocs.org/pull/7467>`__)
8+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 36 (`#7465 <https://github.com/readthedocs/readthedocs.org/pull/7465>`__)
9+
* `@AvdN <https://github.com/AvdN>`__: correct invalid YAML (`#7458 <https://github.com/readthedocs/readthedocs.org/pull/7458>`__)
10+
* `@stsewd <https://github.com/stsewd>`__: Remote repository: filter by account before deleting (`#7454 <https://github.com/readthedocs/readthedocs.org/pull/7454>`__)
11+
* `@humitos <https://github.com/humitos>`__: Truncate the beggining of the commands' output (`#7449 <https://github.com/readthedocs/readthedocs.org/pull/7449>`__)
12+
* `@davidfischer <https://github.com/davidfischer>`__: Update links to advertising (`#7443 <https://github.com/readthedocs/readthedocs.org/pull/7443>`__)
13+
* `@stsewd <https://github.com/stsewd>`__: Revert "Don't retry on POST" (`#7442 <https://github.com/readthedocs/readthedocs.org/pull/7442>`__)
14+
* `@stsewd <https://github.com/stsewd>`__: Organizations: move signals (`#7441 <https://github.com/readthedocs/readthedocs.org/pull/7441>`__)
15+
* `@stsewd <https://github.com/stsewd>`__: Organizations: move forms (`#7438 <https://github.com/readthedocs/readthedocs.org/pull/7438>`__)
16+
* `@humitos <https://github.com/humitos>`__: Grab the correct name of RemoteOrganization to use in the query (`#7430 <https://github.com/readthedocs/readthedocs.org/pull/7430>`__)
17+
* `@stsewd <https://github.com/stsewd>`__: Revert "ES: update dependencies" (`#7429 <https://github.com/readthedocs/readthedocs.org/pull/7429>`__)
18+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 35 (`#7423 <https://github.com/readthedocs/readthedocs.org/pull/7423>`__)
19+
* `@humitos <https://github.com/humitos>`__: Mark a build as DUPLICATED (same version) only it's close in time (`#7420 <https://github.com/readthedocs/readthedocs.org/pull/7420>`__)
20+
21+
Version 5.4.1
22+
-------------
23+
24+
:Date: September 01, 2020
25+
26+
* `@stsewd <https://github.com/stsewd>`__: Docs: update readthedcos-sphinx-search ext (`#7427 <https://github.com/readthedocs/readthedocs.org/pull/7427>`__)
27+
* `@humitos <https://github.com/humitos>`__: Upgrade Django to 2.2.16 (`#7426 <https://github.com/readthedocs/readthedocs.org/pull/7426>`__)
28+
* `@bmorrison4 <https://github.com/bmorrison4>`__: Fix typo in docs/guides/adding-custom-css.rst (`#7424 <https://github.com/readthedocs/readthedocs.org/pull/7424>`__)
29+
* `@stsewd <https://github.com/stsewd>`__: Test: set privacy level explicitly (`#7422 <https://github.com/readthedocs/readthedocs.org/pull/7422>`__)
30+
* `@stsewd <https://github.com/stsewd>`__: Pip: test new resolver (`#7412 <https://github.com/readthedocs/readthedocs.org/pull/7412>`__)
31+
* `@stsewd <https://github.com/stsewd>`__: Update common (`#7411 <https://github.com/readthedocs/readthedocs.org/pull/7411>`__)
32+
* `@stsewd <https://github.com/stsewd>`__: Release 5.4.0 (`#7410 <https://github.com/readthedocs/readthedocs.org/pull/7410>`__)
33+
* `@stsewd <https://github.com/stsewd>`__: Docker: install requirements from local changes (`#7409 <https://github.com/readthedocs/readthedocs.org/pull/7409>`__)
34+
* `@stsewd <https://github.com/stsewd>`__: ES: update dependencies (`#7408 <https://github.com/readthedocs/readthedocs.org/pull/7408>`__)
35+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 34 (`#7406 <https://github.com/readthedocs/readthedocs.org/pull/7406>`__)
36+
* `@stsewd <https://github.com/stsewd>`__: API client: don't retry on POST (`#7383 <https://github.com/readthedocs/readthedocs.org/pull/7383>`__)
37+
* `@saadmk11 <https://github.com/saadmk11>`__: build_url added to all API v3 build endpoints (`#7373 <https://github.com/readthedocs/readthedocs.org/pull/7373>`__)
38+
* `@stsewd <https://github.com/stsewd>`__: Guide: deprecating content (`#7333 <https://github.com/readthedocs/readthedocs.org/pull/7333>`__)
39+
* `@humitos <https://github.com/humitos>`__: Auto-join email users field for Team model (`#7328 <https://github.com/readthedocs/readthedocs.org/pull/7328>`__)
40+
* `@stsewd <https://github.com/stsewd>`__: Guide: Cross-referencing with Sphinx (`#7326 <https://github.com/readthedocs/readthedocs.org/pull/7326>`__)
41+
* `@humitos <https://github.com/humitos>`__: Sync RemoteRepository and RemoteOrganization in all VCS providers (`#7310 <https://github.com/readthedocs/readthedocs.org/pull/7310>`__)
42+
* `@stsewd <https://github.com/stsewd>`__: Page views: use origin URL instead of page name (`#7293 <https://github.com/readthedocs/readthedocs.org/pull/7293>`__)
43+
44+
Version 5.4.0
45+
-------------
46+
47+
:Date: August 25, 2020
48+
49+
* `@stsewd <https://github.com/stsewd>`__: ES: match version used in production (`#7407 <https://github.com/readthedocs/readthedocs.org/pull/7407>`__)
50+
* `@davidfischer <https://github.com/davidfischer>`__: Advertising docs tweaks (`#7400 <https://github.com/readthedocs/readthedocs.org/pull/7400>`__)
51+
* `@stsewd <https://github.com/stsewd>`__: Docs: update readthedocs-sphinx-search (`#7399 <https://github.com/readthedocs/readthedocs.org/pull/7399>`__)
52+
* `@keewis <https://github.com/keewis>`__: document installing into a environment with pinned dependencies (`#7397 <https://github.com/readthedocs/readthedocs.org/pull/7397>`__)
53+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 32 (`#7377 <https://github.com/readthedocs/readthedocs.org/pull/7377>`__)
54+
* `@stsewd <https://github.com/stsewd>`__: Builds: store build commands in storage (`#7356 <https://github.com/readthedocs/readthedocs.org/pull/7356>`__)
55+
* `@stsewd <https://github.com/stsewd>`__: Guide: Cross-referencing with Sphinx (`#7326 <https://github.com/readthedocs/readthedocs.org/pull/7326>`__)
56+
57+
Version 5.3.0
58+
-------------
59+
60+
:Date: August 18, 2020
61+
62+
* `@humitos <https://github.com/humitos>`__: Remove the comma added in logs that breaks grep parsing (`#7393 <https://github.com/readthedocs/readthedocs.org/pull/7393>`__)
63+
* `@stsewd <https://github.com/stsewd>`__: GitLab webhook: don't fail on invalid payload (`#7391 <https://github.com/readthedocs/readthedocs.org/pull/7391>`__)
64+
* `@stsewd <https://github.com/stsewd>`__: Task router: improve logging (`#7389 <https://github.com/readthedocs/readthedocs.org/pull/7389>`__)
65+
* `@stsewd <https://github.com/stsewd>`__: External providers: better logging for GitLab (`#7385 <https://github.com/readthedocs/readthedocs.org/pull/7385>`__)
66+
* `@stsewd <https://github.com/stsewd>`__: Task router: small changes (`#7379 <https://github.com/readthedocs/readthedocs.org/pull/7379>`__)
67+
* `@stsewd <https://github.com/stsewd>`__: Search: return relatives URLS (`#7376 <https://github.com/readthedocs/readthedocs.org/pull/7376>`__)
68+
* `@stsewd <https://github.com/stsewd>`__: Sync versions: little optimization when deleting versions (`#7367 <https://github.com/readthedocs/readthedocs.org/pull/7367>`__)
69+
* `@agjohnson <https://github.com/agjohnson>`__: Add feature flag to just skip the sync version task entirely (`#7366 <https://github.com/readthedocs/readthedocs.org/pull/7366>`__)
70+
* `@agjohnson <https://github.com/agjohnson>`__: Convert zip to list for templates (`#7359 <https://github.com/readthedocs/readthedocs.org/pull/7359>`__)
71+
* `@stsewd <https://github.com/stsewd>`__: Search: implement stable API (`#7255 <https://github.com/readthedocs/readthedocs.org/pull/7255>`__)
72+
* `@stsewd <https://github.com/stsewd>`__: Search: improve parser (`#7233 <https://github.com/readthedocs/readthedocs.org/pull/7233>`__)
73+
174
Version 5.2.3
275
-------------
376

dockerfiles/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
3939

4040
WORKDIR /tmp
4141

42-
RUN curl -O https://raw.githubusercontent.com/readthedocs/readthedocs.org/master/requirements/pip.txt
43-
RUN curl -O https://raw.githubusercontent.com/readthedocs/readthedocs.org/master/requirements/docker.txt
42+
COPY requirements/pip.txt pip.txt
43+
COPY requirements/docker.txt docker.txt
4444
RUN pip3 install --no-cache-dir -r docker.txt
4545

4646
# Install readthedocs-ext only if GITHUB_TOKEN is provided

docs/advertising/advertising-details.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ Instead, we target based solely upon:
7171
targeting by state or by metro area (DMA specifically).
7272
* We geolocate a user's IP address to a country when a request is made.
7373

74-
Read the Docs uses GeoLite2 data created by `MaxMind <http://maxmind.com>`_.
75-
7674

7775
Where ads are shown
7876
-------------------
@@ -97,6 +95,14 @@ For more details, see the :ref:`Do Not Track section <privacy-policy:Do Not Trac
9795
of our privacy policy.
9896

9997

98+
Ad serving infrastructure
99+
-------------------------
100+
101+
Our `entire ad server <https://github.com/readthedocs/ethical-ad-server>`_ is open source,
102+
so you can inspect how we're doing things.
103+
We believe strongly in open source, and we practice what we preach.
104+
105+
100106
Analytics
101107
---------
102108

docs/advertising/ethical-advertising.rst

+14-9
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ as our way of saying thanks to the open source community.
1919
We talk a bit below about :ref:`our worldview on advertising <advertising/ethical-advertising:Our Worldview>`,
2020
if you want to know more.
2121

22-
.. important::
22+
.. admonition:: Are you a marketer?
23+
24+
We built a `whole business <https://www.ethicalads.io/?ref=rtd-docs>`_
25+
around privacy-focused advertising.
26+
If you're trying to reach developers, we have a network of hand-approved sites (including Read the Docs)
27+
where your ads are shown.
2328

24-
**Are you a marketer?**
25-
`Learn more <https://readthedocs.org/sustainability/advertising/>`_ about how you can connect with the millions of developers who Read the Docs each month.
2629

2730
Feedback
2831
--------
@@ -74,6 +77,9 @@ They should run before your content,
7477
they should take over the page,
7578
the bigger, weirder, or flashier the better.
7679

80+
.. _fake ad clicks: https://en.wikipedia.org/wiki/Click_fraud
81+
.. _massive downsides: http://idlewords.com/talks/what_happens_next_will_amaze_you.htm
82+
7783
We opt out
7884
~~~~~~~~~~
7985

@@ -91,8 +97,6 @@ The ads won't flash or move.
9197
We run the ads we want to have on our site,
9298
in a way that makes us feel good.
9399

94-
.. _fake ad clicks: https://en.wikipedia.org/wiki/Click_fraud
95-
96100
Additional details
97101
------------------
98102

@@ -105,8 +109,11 @@ Additional details
105109
* Eric Holscher, one of our co-founders
106110
`talks a bit more <https://www.ericholscher.com/blog/2016/aug/31/funding-oss-marketing-money/>`_
107111
about funding open source this way on his blog.
112+
* After proving our ad model as a way to fund open source and building our ad serving infrastructure,
113+
we launched the `EthicalAds network <https://www.ethicalads.io?ref=rtd-docs>`_
114+
to help other projects be sustainable.
108115

109-
.. _advertising FAQ: https://readthedocs.org/sustainability/advertising/faq/
116+
.. _advertising FAQ: https://www.ethicalads.io/advertisers/faq/?ref=rtd-docs
110117

111118
Join us
112119
-------
@@ -118,9 +125,7 @@ We hope that others will join us in this mission:
118125
`talk to your marketing folks <https://www.ericholscher.com/blog/2016/aug/31/funding-oss-marketing-money/>`_ about using advertising that respects your privacy.
119126
* **If you're a marketer**,
120127
vote with your dollars and support us in building the ad model we want to exist.
121-
`Get more information <https://readthedocs.org/sustainability/advertising/>`_ on what we offer.
122-
123-
.. _massive downsides: http://idlewords.com/talks/what_happens_next_will_amaze_you.htm
128+
`Get more information <https://www.ethicalads.io/advertisers/?ref=rtd-docs>`_ on what we offer.
124129

125130

126131
Community Ads

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def get_version():
110110
# Activate autosectionlabel plugin
111111
autosectionlabel_prefix_document = True
112112

113+
numfig = True
114+
113115
# sphinx-notfound-page
114116
# https://github.com/readthedocs/sphinx-notfound-page
115117
notfound_context = {

docs/config-file/v2.rst

+44-2
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ Settings for more control over :doc:`/server-side-search`.
468468
ranking:
469469
api/v1/*: -1
470470
api/v2/*: 4
471+
ignore:
472+
- 404.html
471473
472474
search.ranking
473475
``````````````
@@ -490,20 +492,23 @@ Pages with a rank closer to -10 will appear further down the list of results,
490492
and pages with a rank closer to 10 will appear higher in the list of results.
491493
Note that 0 means *normal rank*, not *no rank*.
492494

495+
If you are looking to completely ignore a page,
496+
check :ref:`config-file/v2:search.ignore`.
497+
493498
.. code-block:: yaml
494499
495500
version: 2
496501
497502
search:
498503
ranking:
499504
# Match a single file
500-
tutorial.hml: 2
505+
tutorial.html: 2
501506
502507
# Match all files under the api/v1 directory
503508
api/v1/*: -5
504509
505510
# Match all files that end with tutorial.html
506-
*/tutorial.html: 3
511+
'*/tutorial.html': 3
507512
508513
.. note::
509514

@@ -514,6 +519,43 @@ Note that 0 means *normal rank*, not *no rank*.
514519
Is better to decrease the rank of pages you want to deprecate,
515520
rather than increasing the rank of the other pages.
516521

522+
search.ignore
523+
`````````````
524+
525+
Don't index files matching a pattern.
526+
This is, you won't see search results from these files.
527+
528+
:Type: ``list`` of patterns
529+
:Default: ``['search.html', 'search/index.html', '404.html', '404/index.html']``
530+
531+
Patterns are matched against the final html pages produced by the build
532+
(you should try to match `index.html`, not `docs/index.rst`).
533+
Patterns can include some special characters:
534+
535+
- ``*`` matches everything
536+
- ``?`` matches any single character
537+
- ``[seq]`` matches any character in ``seq``
538+
539+
.. code-block:: yaml
540+
541+
version: 2
542+
543+
search:
544+
ignore:
545+
# Ignore a single file
546+
- 404.html
547+
548+
# Ignore all files under the search/ directory
549+
- search/*
550+
551+
# Ignore all files that end with ref.html
552+
- '*/ref.html'
553+
554+
.. note::
555+
556+
Since Read the Docs fallbacks to the original search engine when no results are found,
557+
you may still see search results from ignored pages.
558+
517559
Schema
518560
------
519561

docs/faq.rst

+17
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,23 @@ using a Read the Docs :doc:`config-file/index`.
251251
.. _pip requirements file: https://pip.pypa.io/en/stable/user_guide.html#requirements-files
252252

253253

254+
I need to install a package in a environment with pinned versions
255+
-----------------------------------------------------------------
256+
257+
To ensure proper installation of a python package, the ``pip`` :ref:`install method <config-file/v2:python.install>` will automatically upgrade every dependency to its most recent version in case they aren't pinned by the package definition.
258+
If instead you'd like to pin your dependencies outside the package, you can add this line to your requirements or environment file (if you are using Conda).
259+
260+
In your ``requirements.txt`` file::
261+
262+
# path to the directory containing setup.py relative to the project root
263+
-e .
264+
265+
In your Conda environment file (``environment.yml``)::
266+
267+
# path to the directory containing setup.py relative to the environment file
268+
-e ..
269+
270+
254271
How can I avoid search results having a deprecated version of my docs?
255272
----------------------------------------------------------------------
256273

docs/guides/adding-custom-css.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ A similar approach can be used to add JavaScript files::
4242
.. note::
4343

4444
The Sphinx HTML options ``html_css_files`` and ``html_js_files``
45-
where added in Sphinx 1.8.
45+
were added in Sphinx 1.8.
4646
Unless you have a good reason to use an older version,
4747
you are strongly encouraged to upgrade.
4848
Sphinx is almost entirely backwards compatible.

0 commit comments

Comments
 (0)