Skip to content

Commit 6169f3f

Browse files
committed
Merge tag '6.3.2' into relcorp
2 parents 2c0bcf9 + 19e7efa commit 6169f3f

File tree

1,223 files changed

+310
-320
lines changed

Some content is hidden

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

1,223 files changed

+310
-320
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- run: tox -e lint
4848
- run: tox -e docs-lint
4949
- run: tox -e docs
50+
- run: tox -e docs-dev
5051
- run: tox -e eslint
5152

5253
workflows:

.readthedocs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ build:
1616
python: "3.8"
1717

1818
search:
19-
ignore:
20-
# Internal documentation
21-
- development/design/*
22-
- search.html
23-
- 404.html
2419
ranking:
2520
# Deprecated content
2621
api/v1.html: -1

CHANGELOG.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
Version 6.3.2
2+
-------------
3+
4+
:Date: January 04, 2022
5+
6+
* `@cagatay-y <https://github.com/cagatay-y>`__: Fix broken link in edit-source-links-sphinx.rst (`#8788 <https://github.com/readthedocs/readthedocs.org/pull/8788>`__)
7+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 52 (`#8787 <https://github.com/readthedocs/readthedocs.org/pull/8787>`__)
8+
* `@astrojuanlu <https://github.com/astrojuanlu>`__: Cap setuptools even if installed packages are ignored (`#8777 <https://github.com/readthedocs/readthedocs.org/pull/8777>`__)
9+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 51 (`#8776 <https://github.com/readthedocs/readthedocs.org/pull/8776>`__)
10+
* `@astrojuanlu <https://github.com/astrojuanlu>`__: Follow up to dev docs split (`#8774 <https://github.com/readthedocs/readthedocs.org/pull/8774>`__)
11+
* `@stsewd <https://github.com/stsewd>`__: API v3: improve message when using the API on the browser (`#8768 <https://github.com/readthedocs/readthedocs.org/pull/8768>`__)
12+
* `@stsewd <https://github.com/stsewd>`__: API v3: don't include subproject_of on subprojects (`#8767 <https://github.com/readthedocs/readthedocs.org/pull/8767>`__)
13+
* `@davidfischer <https://github.com/davidfischer>`__: Use ad client stickybox feature on RTD's own docs (`#8766 <https://github.com/readthedocs/readthedocs.org/pull/8766>`__)
14+
* `@stsewd <https://github.com/stsewd>`__: API v3: explicitly test with RTD_ALLOW_ORGANIZATIONS=False (`#8765 <https://github.com/readthedocs/readthedocs.org/pull/8765>`__)
15+
* `@stsewd <https://github.com/stsewd>`__: Update tasks.py (`#8764 <https://github.com/readthedocs/readthedocs.org/pull/8764>`__)
16+
* `@ericholscher <https://github.com/ericholscher>`__: Release 6.3.1 (`#8763 <https://github.com/readthedocs/readthedocs.org/pull/8763>`__)
17+
* `@humitos <https://github.com/humitos>`__: Update `common/` to latest version (`#8761 <https://github.com/readthedocs/readthedocs.org/pull/8761>`__)
18+
* `@stsewd <https://github.com/stsewd>`__: Skip slug check when editing an organization (`#8760 <https://github.com/readthedocs/readthedocs.org/pull/8760>`__)
19+
* `@stsewd <https://github.com/stsewd>`__: Explicit settings for some tests (`#8759 <https://github.com/readthedocs/readthedocs.org/pull/8759>`__)
20+
* `@ericholscher <https://github.com/ericholscher>`__: Fix EA branding in docs (`#8758 <https://github.com/readthedocs/readthedocs.org/pull/8758>`__)
21+
* `@pyup-bot <https://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 50 (`#8757 <https://github.com/readthedocs/readthedocs.org/pull/8757>`__)
22+
* `@astrojuanlu <https://github.com/astrojuanlu>`__: Add MyST Markdown examples everywhere (`#8752 <https://github.com/readthedocs/readthedocs.org/pull/8752>`__)
23+
* `@stsewd <https://github.com/stsewd>`__: Docs: split user and dev docs (`#8751 <https://github.com/readthedocs/readthedocs.org/pull/8751>`__)
24+
* `@humitos <https://github.com/humitos>`__: Logging: tweaks and minor improvements (`#8736 <https://github.com/readthedocs/readthedocs.org/pull/8736>`__)
25+
* `@stsewd <https://github.com/stsewd>`__: Audit: test models (`#8495 <https://github.com/readthedocs/readthedocs.org/pull/8495>`__)
26+
127
Version 6.3.1
228
-------------
329

common

Submodule common updated 1 file

docs/_static/css/custom.css

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,7 @@
55
}
66

77

8-
/* RTD docs ad placement in the lower right */
9-
#rtd-stickybox {
10-
z-index: 1000;
11-
position: fixed;
12-
bottom: 20px;
13-
right: 20px;
14-
}
15-
#rtd-stickybox .ea-content {
16-
background: rgba(230, 230, 230);
17-
}
18-
#rtd-stickybox .stickybox-hide {
19-
cursor: pointer;
20-
position: absolute;
21-
top: 0.5rem;
22-
right: 0.5rem;
23-
24-
background-color: #fefefe;
25-
border: 1px solid #088cdb;
26-
border-radius: 50%;
27-
color: #088cdb;
28-
font-size: 0.75rem;
8+
/* Center the RTD placement when not wide enough to float */
9+
#rtd-stickybox-container {
2910
text-align: center;
30-
height: 1rem;
31-
width: 1rem;
32-
}
33-
34-
/* Placement under content on smaller screens/tablets/mobile */
35-
@media (max-width: 1340px) {
36-
#rtd-stickybox {
37-
position: static;
38-
bottom: 0;
39-
right: 0;
40-
margin: auto;
41-
text-align: center;
42-
}
43-
44-
#rtd-stickybox .stickybox-hide {
45-
display: none;
46-
}
4711
}

docs/_templates/ethicalads.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<div id="rtd-stickybox">
2-
<div class="stickybox-hide" onclick="document.querySelector('#rtd-stickybox').remove();">&#215;</div>
3-
<div class="raised" data-ea-publisher="readthedocs" data-ea-type="image"></div>
1+
<div id="rtd-stickybox-container">
2+
<div class="raised" data-ea-publisher="readthedocs" data-ea-type="image" data-ea-style="stickybox"></div>
43
</div>

docs/conf.py

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
"""
2+
Shared Sphinx configuration.
3+
4+
Each docset corresponds to a directory containing several rst/md files,
5+
sharing this same conf.py file. To build a docset an environment variable
6+
is used, ``RTD_DOCSET``, values given in the settings are relative to this
7+
conf.py file, if you want to give a different value for a docset, use the
8+
``docsets`` dictionary, or if you want to extend the current value,
9+
use f'{docset}/setting' as value on the setting, for example::
10+
11+
html_static_path = ['_static', f'{docset}/_static']
12+
"""
13+
114
import os
215
import sys
316
from configparser import RawConfigParser
@@ -14,6 +27,24 @@
1427
django.setup()
1528

1629

30+
# Set here the variables you want for each docset.
31+
docsets = {
32+
'user': {
33+
'project': 'Read the Docs user documentation',
34+
},
35+
'dev': {
36+
'project': 'Read the Docs developer documentation',
37+
},
38+
}
39+
docset = os.environ.get('RTD_DOCSET', 'user')
40+
if docset not in docsets:
41+
print(f'Invalid RTD_DOCSET value: "{docset}"')
42+
exit(1)
43+
44+
for k, v in docsets[docset].items():
45+
locals()[k] = v
46+
47+
1748
def get_version():
1849
"""Return package version from setup.cfg."""
1950
config = RawConfigParser()
@@ -41,7 +72,6 @@ def get_version():
4172
templates_path = ['_templates']
4273

4374
master_doc = 'index'
44-
project = 'Read the Docs'
4575
copyright = '2010-{}, Read the Docs, Inc & contributors'.format(
4676
timezone.now().year
4777
)
@@ -66,6 +96,8 @@ def get_version():
6696
'jupyterbook': ('https://jupyterbook.org/', None),
6797
'myst-parser': ('https://myst-parser.readthedocs.io/en/v0.15.1/', None),
6898
'rst-to-myst': ('https://rst-to-myst.readthedocs.io/en/stable/', None),
99+
'rtd': ('https://docs.readthedocs.io/en/stable/', None),
100+
'rtd-dev': ('https://dev.readthedocs.io/en/latest/', None),
69101
}
70102
myst_enable_extensions = [
71103
"deflist",
@@ -95,13 +127,13 @@ def get_version():
95127
language = 'en'
96128

97129
locale_dirs = [
98-
'locale/',
130+
f'{docset}/locale/',
99131
]
100132
gettext_compact = False
101133

102134
html_theme = 'sphinx_rtd_theme'
103-
html_static_path = ['_static']
104-
html_css_files = ['css/custom.css']
135+
html_static_path = ['_static', f'{docset}/_static']
136+
html_css_files = ['css/custom.css', 'css/sphinx_prompt_css.css']
105137
html_js_files = ['js/expand_tabs.js']
106138
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
107139
html_logo = 'img/logo.svg'
@@ -162,4 +194,4 @@ def get_version():
162194

163195

164196
def setup(app):
165-
app.add_css_file('css/sphinx_prompt_css.css')
197+
app.srcdir += '/' + docset
File renamed without changes.
File renamed without changes.

docs/contribute.rst renamed to docs/dev/contribute.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Contributing to development
2323

2424
If you want to deep dive and help out with development on Read the Docs, then
2525
first get the project installed locally according to the
26-
:doc:`installation guide </development/install>`. After that is done we
26+
:doc:`installation guide </install>`. After that is done we
2727
suggest you have a look at tickets in our issue tracker that are labelled `Good
2828
First Issue`_. These are meant to be a great way to get a smooth start and
2929
won't put you in front of the most complex parts of the system.
@@ -38,7 +38,8 @@ They are simply things that are explained.
3838
If you still didn't find something to work on, search for the `Sprintable`_ label.
3939
Those tickets are meant to be standalone and can be worked on ad-hoc.
4040

41-
You can read all of our :doc:`/development/index` to understand more the development of Read the Docs. When contributing code, then please follow the standard Contribution Guidelines set forth at `contribution-guide.org`_.
41+
You can read all of our :doc:`/index` to understand more the development of Read the Docs.
42+
When contributing code, then please follow the standard Contribution Guidelines set forth at `contribution-guide.org`_.
4243

4344
.. _Feature: https://github.com/readthedocs/readthedocs.org/issues?direction=desc&labels=Feature&page=1&sort=updated&state=open
4445
.. _Improvement: https://github.com/readthedocs/readthedocs.org/issues?q=is%3Aopen+is%3Aissue+label%3AImprovement
@@ -54,7 +55,7 @@ Contributing to documentation
5455
Documentation for Read the Docs itself is hosted by Read the Docs at https://docs.readthedocs.io (likely the website you are currently reading).
5556

5657
There are guidelines around writing and formatting documentation for the project.
57-
For full details, including how to build it, see :doc:`/development/docs`.
58+
For full details, including how to build it, see :doc:`/docs`.
5859

5960

6061
Triaging tickets
@@ -196,7 +197,7 @@ few more at hand to further categorize issues.
196197
handled during a sprint. They are very focused and encapsulated.
197198

198199
For a full list of available labels and their meanings, see
199-
:doc:`/development/issue-labels`.
200+
:doc:`/issue-labels`.
200201

201202
Helpful links for triaging
202203
~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ time and design skills to Read the Docs? That's
77
a few features available to ease the process of
88
working with Read the Doc's CSS and static assets.
99

10-
To start, you should follow the :doc:`/development/install` instructions
10+
To start, you should follow the :doc:`/install` instructions
1111
to get a working copy of the Read the Docs repository locally.
1212

1313
.. TODO: update to match the new ext-theme
File renamed without changes.

docs/development/design/embed-api.rst renamed to docs/dev/design/embed-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and remove some quirkiness that makes it hard to maintain and difficult to use.
2323
Current implementation
2424
----------------------
2525

26-
The current implementation of the API is partially documented in :doc:`/guides/embedding-content`.
26+
The current implementation of the API is partially documented in :doc:`rtd:guides/embedding-content`.
2727
It has some known problems:
2828

2929
* There are different ways of querying the API: ``?url=`` (generic) and ``?doc=`` (relies on Sphinx's specific concept)

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

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

File renamed without changes.

docs/development/design/theme-context.rst renamed to docs/dev/design/theme-context.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Note that this dictionary is injected under the main key `readthedocs`:
112112
so it's your responsibility to use this context in a proper way.
113113

114114
In case you want *fresh data* at the moment of reading your documentation,
115-
you should consider using the :doc:`Read the Docs Public API </api/index>` via Javascript.
115+
you should consider using the :doc:`Read the Docs Public API <rtd:api/index>` via Javascript.
116116

117117

118118
Using Read the Docs context in your theme
File renamed without changes.

docs/development/docs.rst renamed to docs/dev/docs.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Building and Contributing to Documentation
33

44
As one might expect,
55
the documentation for Read the Docs is built using Sphinx and hosted on Read the Docs.
6-
The docs are kept in the ``docs/`` directory at the top of the source tree.
6+
The docs are kept in the ``docs/`` directory at the top of the source tree,
7+
and are divided into developer and user-facing documentation.
78

89
Contributing through the Github UI
910
----------------------------------
@@ -51,11 +52,20 @@ you may want to verify those changes locally before pushing upstream.
5152
5253
#. build the documents
5354

55+
To build the user-facing documentation:
56+
5457
.. code-block:: console
5558
5659
(.venv) $ cd docs
5760
(.venv) $ make livehtml
5861
62+
To build the developer documentation:
63+
64+
.. code-block:: console
65+
66+
(.venv) $ cd docs
67+
(.venv) $ RTD_DOCSET=dev make livehtml
68+
5969
#. the documents will be available at http://127.0.0.1:4444/ and will rebuild each time you edit and save a file.
6070

6171
Guidelines

docs/development/front-end.rst renamed to docs/dev/front-end.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ in.
5555
Getting Started
5656
---------------
5757

58-
You will need to follow our :doc:`guide to install a development Read the Docs instance </development/install>` first.
58+
You will need to follow our :doc:`guide to install a development Read the Docs instance </install>` first.
5959

6060
The sources for our bundles are found in the per-application path
6161
``static-src``, which has the same directory structure as ``static``. Files in
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/dev/index.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Read the Docs developer documentation
2+
=====================================
3+
4+
Documentation for running your own local version of Read the Docs for development,
5+
or taking the open source Read the Docs codebase for your own custom installation.
6+
7+
.. toctree::
8+
:caption: General
9+
:maxdepth: 1
10+
11+
contribute
12+
code-of-conduct
13+
issue-labels
14+
roadmap
15+
design/index
16+
17+
.. toctree::
18+
:caption: Development
19+
:maxdepth: 1
20+
21+
install
22+
design
23+
docs
24+
front-end
25+
i18n
26+
search
27+
search-integration
28+
settings
29+
tests
30+
architecture

docs/development/install.rst renamed to docs/dev/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,21 +199,21 @@ debugging currently.
199199
Configuring connected accounts
200200
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201201

202-
These are optional steps to setup the :doc:`connected accounts </connected-accounts>`
202+
These are optional steps to setup the :doc:`connected accounts <rtd:connected-accounts>`
203203
(GitHub, GitLab, and BitBucket) in your development environment.
204204
This will allow you to login to your local development instance
205205
using your GitHub, Bitbucket, or GitLab credentials
206206
and this makes the process of importing repositories easier.
207207

208208
However, because these services will not be able to connect back to your local development instance,
209-
:doc:`incoming webhooks </integrations>` will not function correctly.
209+
:doc:`incoming webhooks <rtd:integrations>` will not function correctly.
210210
For some services, the webhooks will fail to be added when the repository is imported.
211211
For others, the webhook will simply fail to connect when there are new commits to the repository.
212212

213-
.. figure:: ../_static/images/development/bitbucket-oauth-setup.png
213+
.. figure:: /_static/images/development/bitbucket-oauth-setup.png
214214
:align: center
215215
:figwidth: 80%
216-
:target: ../_static/images/development/bitbucket-oauth-setup.png
216+
:target: /_static/images/development/bitbucket-oauth-setup.png
217217

218218
Configuring an OAuth consumer for local development on Bitbucket
219219

File renamed without changes.
File renamed without changes.

docs/development/search-integration.rst renamed to docs/dev/search-integration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Server Side Search Integration
22
==============================
33

4-
Read the Docs provides :doc:`server side search (SSS) </server-side-search>`
4+
Read the Docs provides :doc:`server side search (SSS) <rtd:server-side-search>`
55
in replace of the default search engine of your site.
66
To accomplish this, Read the Docs parses the content directly from your HTML pages [*]_.
77

@@ -309,7 +309,7 @@ Supporting more themes and static site generators
309309
-------------------------------------------------
310310

311311
Currently, Read the Docs supports building documentation from
312-
:doc:`Sphinx </intro/getting-started-with-sphinx>` and :doc:`MkDocs </intro/getting-started-with-mkdocs>`.
312+
:doc:`Sphinx <rtd:intro/getting-started-with-sphinx>` and :doc:`MkDocs <rtd:intro/getting-started-with-mkdocs>`.
313313
All themes that follow these conventions should work as expected.
314314
If you think other generators or other conventions should be supported,
315315
or content that should be ignored or have an especial treatment,

docs/development/search.rst renamed to docs/dev/search.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Currently we are using `Elasticsearch 6.3`_.
99
Local Development Configuration
1010
-------------------------------
1111

12-
Elasticsearch is installed and run as part of the :doc:`development installation guide </development/install>`.
12+
Elasticsearch is installed and run as part of the :doc:`development installation guide </install>`.
1313

1414
Indexing into Elasticsearch
1515
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)