Skip to content

Commit c56c889

Browse files
committed
Merge branch 'master' into use-latest-setuptools
2 parents 2cbea88 + d66f9b1 commit c56c889

File tree

154 files changed

+4497
-2431
lines changed

Some content is hidden

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

154 files changed

+4497
-2431
lines changed

.circleci/config.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2.1
2+
3+
jobs:
4+
tests:
5+
docker:
6+
- image: 'cimg/python:3.6'
7+
environment:
8+
TOX_POSARGS: ''
9+
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
10+
name: search
11+
steps:
12+
- checkout
13+
- run: git submodule sync
14+
- run: git submodule update --init
15+
- run: pip install --user tox
16+
- run: tox -e py36,codecov
17+
18+
checks:
19+
docker:
20+
- image: 'cimg/python:3.6'
21+
environment:
22+
NODE_VERSION: 10.17.0
23+
steps:
24+
- checkout
25+
- run: git submodule sync
26+
- run: git submodule update --init
27+
- run: pip install --user tox
28+
- run: scripts/circle/install_node.sh
29+
- run:
30+
name: Add node to the path
31+
command: |
32+
echo 'export PATH=~/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH' >> $BASH_ENV
33+
source $BASH_ENV
34+
- run: tox -e migrations
35+
- run: tox -e lint
36+
- run: tox -e docs-lint
37+
- run: tox -e docs
38+
- run: tox -e eslint
39+
40+
workflows:
41+
version: 2
42+
test:
43+
jobs:
44+
- checks
45+
- tests

.readthedocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ search:
1818

1919
# Useful content, but not something we want most users finding
2020
custom_installs/*: -6
21+
changelog.html: -6

.travis.yml

-52
This file was deleted.

CHANGELOG.rst

+196
Large diffs are not rendered by default.

README.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ when you push to GitHub.
6060
#. All done. Commit away and your project will auto-update.
6161

6262

63-
.. |build-status| image:: https://img.shields.io/travis/readthedocs/readthedocs.org.svg?style=flat
63+
.. |build-status| image:: https://circleci.com/gh/readthedocs/readthedocs.org.svg?style=svg
6464
:alt: build status
65-
:scale: 100%
66-
:target: https://travis-ci.org/readthedocs/readthedocs.org
65+
:target: https://circleci.com/gh/readthedocs/readthedocs.org
6766

6867
.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest
6968
:alt: Documentation Status

dockerfiles/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ RUN if [ -n "$GITHUB_TOKEN" ] ; \
4949
then \
5050
git clone --depth 1 https://${GITHUB_TOKEN}@github.com/readthedocs/readthedocs-ext ; \
5151
pip3 install --no-cache-dir -e readthedocs-ext ; \
52+
git clone --depth 1 https://${GITHUB_TOKEN}@github.com/readthedocs/ext-theme ; \
53+
pip3 install --no-cache-dir -e ext-theme ; \
5254
fi
5355

5456
WORKDIR /usr/src/app/checkouts/readthedocs.org

docs/advertising/ethical-advertising.rst

+10-6
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
--------
@@ -107,9 +110,10 @@ Additional details
107110
`talks a bit more <https://www.ericholscher.com/blog/2016/aug/31/funding-oss-marketing-money/>`_
108111
about funding open source this way on his blog.
109112
* After proving our ad model as a way to fund open source and building our ad serving infrastructure,
110-
we launched the `EthicalAds network <https://www.ethicalads.io>`_ to help other projects be sustainable.
113+
we launched the `EthicalAds network <https://www.ethicalads.io?ref=rtd-docs>`_
114+
to help other projects be sustainable.
111115

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

114118
Join us
115119
-------
@@ -121,7 +125,7 @@ We hope that others will join us in this mission:
121125
`talk to your marketing folks <https://www.ericholscher.com/blog/2016/aug/31/funding-oss-marketing-money/>`_ about using advertising that respects your privacy.
122126
* **If you're a marketer**,
123127
vote with your dollars and support us in building the ad model we want to exist.
124-
`Get more information <https://readthedocs.org/sustainability/advertising/>`_ on what we offer.
128+
`Get more information <https://www.ethicalads.io/advertisers/?ref=rtd-docs>`_ on what we offer.
125129

126130

127131
Community Ads

docs/api/v2.rst

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
API v2 (deprecated)
2-
===================
1+
API v2
2+
======
33

44
The Read the Docs API uses :abbr:`REST (Representational State Transfer)`.
55
JSON is returned by all API responses including errors
66
and HTTP response status codes are to designate success and failure.
77

8-
.. note::
8+
.. warning::
99

10-
A newer and better API v3 is ready to use.
11-
Some improvements coming in v3 are:
10+
API v2 is planned to be deprecated soon, though we have not yet set a time
11+
frame for deprecation yet. We will alert users with our plans when we do.
12+
13+
For now, API v2 is still used by some legacy application operations still,
14+
but we highly recommend Read the Docs users use :doc:`API v3 </api/v3>`
15+
instead.
16+
17+
Some improvements in :doc:`API v3 </api/v3>` are:
1218

13-
* Simpler URLs which use slugs
1419
* Token based authentication
15-
* Import a new project
16-
* Activate a version
20+
* Easier to use URLs which no longer use numerical ids
21+
* More common user actions are exposed through the API
1722
* Improved error reporting
1823

1924
See its full documentation at :doc:`/api/v3`.

docs/api/v3.rst

+4
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ Versions listing
412412

413413
:query boolean active: return only active versions
414414
:query boolean built: return only built versions
415+
:query string privacy_level: return versions with specific privacy level (``public`` or ``private``)
416+
:query string slug: return versions with matching slug
417+
:query string type: return versions with specific type (``branch`` or ``tag``)
418+
:query string verbose_name: return versions with matching version name
415419

416420

417421
Version detail

docs/automation-rules.rst

+17
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ Currently, the following actions are available:
6161
i.e. the version of your project that `/` redirects to.
6262
See more in :ref:`automatic-redirects:Root URL`.
6363
It also activates and builds the version.
64+
- **Delete version**: When a branch or tag is deleted from your repository,
65+
Read the Docs will delete it *only if isn't active*.
66+
This action allows you to delete *active* versions when a branch or tag is deleted from your repository.
67+
68+
.. note::
69+
70+
The default version isn't deleted even if it matches a rule.
71+
You can use the ``Set version as default`` action to change the default version
72+
before deleting the current one.
73+
6474

6575
.. note::
6676

@@ -99,6 +109,13 @@ Activate only new branches that belong to the ``1.x`` release
99109
- Version type: ``Branch``
100110
- Action: ``Activate version``
101111

112+
Delete an active version when a branch is deleted
113+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114+
115+
- Match: ``Any version``
116+
- Version type: ``Branch``
117+
- Action: ``Delete version``
118+
102119
Set as default new tags that have the ``-stable`` or ``-release`` suffix
103120
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104121

docs/commercial/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ Advertising-free
3535
organizations
3636
single-sign-on
3737
sharing
38+
privacy-level
3839
analytics

docs/commercial/privacy-level.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Project Privacy Level
2+
---------------------
3+
4+
.. note::
5+
6+
This feature only exists on `Read the Docs for Business <https://readthedocs.com/>`__.
7+
8+
By default, only users that belong to your organization can see the dashboard of your project and its builds.
9+
If you want users outside your organization and anonymous users to be able to see the dashboard of your project,
10+
and the build output of *public versions* you can set the privacy level of your project to ``Public``.
11+
12+
- Go the :guilabel:`Admin` tab of your project.
13+
- Click on :guilabel:`Advanced Settings`.
14+
- Change to :guilabel:`Privacy level` to `Public`.
15+
16+
17+
.. note::
18+
19+
To control access to the documentation itself,
20+
see :ref:`versions:privacy levels`.

0 commit comments

Comments
 (0)