Skip to content

Commit ab4e53d

Browse files
committed
Merge tag '9.9.1' into rel
2 parents a5ae9bd + c36fc57 commit ab4e53d

File tree

92 files changed

+5045
-4325
lines changed

Some content is hidden

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

92 files changed

+5045
-4325
lines changed

.readthedocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
version: 2
22

3-
formats: all
3+
formats:
4+
- epub
5+
- htmlzip
46

57
sphinx:
68
configuration: docs/conf.py

CHANGELOG.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
Version 9.9.1
2+
-------------
3+
4+
:Date: March 21, 2023
5+
6+
* `@humitos <https://github.com/humitos>`__: Build: use safe_open for security reasons (`#10165 <https://github.com/readthedocs/readthedocs.org/pull/10165>`__)
7+
* `@github-actions[bot] <https://github.com/github-actions[bot]>`__: Dependencies: all packages updated via pip-tools (`#10163 <https://github.com/readthedocs/readthedocs.org/pull/10163>`__)
8+
* `@agjohnson <https://github.com/agjohnson>`__: Update some docs for the new dashboard templates (`#10161 <https://github.com/readthedocs/readthedocs.org/pull/10161>`__)
9+
* `@ericholscher <https://github.com/ericholscher>`__: Revert 92a7182af42e26cab01265d2cc06fc7832832689 (`#10158 <https://github.com/readthedocs/readthedocs.org/pull/10158>`__)
10+
* `@humitos <https://github.com/humitos>`__: Lint: update common to get the latest linting changes (`#10154 <https://github.com/readthedocs/readthedocs.org/pull/10154>`__)
11+
* `@stsewd <https://github.com/stsewd>`__: Proxito: don't check for index.html if the path already ends with `/`. (`#10153 <https://github.com/readthedocs/readthedocs.org/pull/10153>`__)
12+
* `@ericholscher <https://github.com/ericholscher>`__: Docs: Disable PDF builds for now (`#10152 <https://github.com/readthedocs/readthedocs.org/pull/10152>`__)
13+
* `@stsewd <https://github.com/stsewd>`__: Put back template_name on proxito 404 view (`#10149 <https://github.com/readthedocs/readthedocs.org/pull/10149>`__)
14+
* `@silopolis <https://github.com/silopolis>`__: Fix doc_builder exceptions messages typos and spelling (`#10147 <https://github.com/readthedocs/readthedocs.org/pull/10147>`__)
15+
* `@humitos <https://github.com/humitos>`__: Release 9.9.0 (`#10146 <https://github.com/readthedocs/readthedocs.org/pull/10146>`__)
16+
* `@stsewd <https://github.com/stsewd>`__: Proxito: redirect http->https for public domains (`#10142 <https://github.com/readthedocs/readthedocs.org/pull/10142>`__)
17+
* `@benjaoming <https://github.com/benjaoming>`__: Removing non-used requirements file lint.in (`#10140 <https://github.com/readthedocs/readthedocs.org/pull/10140>`__)
18+
* `@humitos <https://github.com/humitos>`__: Build: pass `PATH` environment variable to Docker container (`#10133 <https://github.com/readthedocs/readthedocs.org/pull/10133>`__)
19+
* `@benjaoming <https://github.com/benjaoming>`__: Docs: New how-to sublevels (Diátaxis) (`#10131 <https://github.com/readthedocs/readthedocs.org/pull/10131>`__)
20+
* `@humitos <https://github.com/humitos>`__: Hosting: manual integrations via build contract (`#10127 <https://github.com/readthedocs/readthedocs.org/pull/10127>`__)
21+
* `@benjaoming <https://github.com/benjaoming>`__: Docs: emojis in TOC captions, FontAwesome on external links in TOC (Diátaxis) (`#10039 <https://github.com/readthedocs/readthedocs.org/pull/10039>`__)
22+
123
Version 9.9.0
224
-------------
325

common

dockerfiles/nginx/proxito.conf.template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ server {
8888
proxy_hide_header Content-Security-Policy;
8989
set $content_security_policy $upstream_http_content_security_policy;
9090
add_header Content-Security-Policy $content_security_policy always;
91+
92+
# This header allows us to decide whether or not inject the script at CloudFlare level
93+
# Now, I'm injecting it in all the NGINX responses because `sub_filter` is not allowed inside an `if` statement.
94+
set $rtd_hosting_integrations $upstream_http_x_rtd_hosting_integrations;
95+
add_header X-RTD-Hosting-Integrations $rtd_hosting_integrations always;
96+
97+
# Inject our own script dynamically
98+
# TODO: find a way to make this work _without_ running `npm run dev` from the `readthedocs-client` repository
99+
sub_filter '</head>' '<script language="javascript" src="http://localhost:8000/readthedocs-client.js"></script>\n</head>';
100+
sub_filter_last_modified on;
101+
sub_filter_once on;
91102
}
92103

93104
# Serve 404 pages here

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
master_doc = "index"
6969
copyright = "Read the Docs, Inc & contributors"
70-
version = "9.9.0"
70+
version = "9.9.1"
7171
release = version
7272
exclude_patterns = ["_build", "shared", "_includes"]
7373
default_role = "obj"

docs/dev/front-end.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ Background
66

77
.. note::
88

9-
Consider this the canonical resource for contributing Javascript and CSS. We
10-
are currently in the process of modernizing our front end development
11-
procedures. You will see a lot of different styles around the code base for
12-
front end JavaScript and CSS.
9+
This information is for the current dashboard templates and JavaScript source
10+
files and will soon be replaced by the new dashboard templates. This
11+
information will soon be mostly out of date.
1312

1413
Our modern front end development stack includes the following tools:
1514

docs/dev/install.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ save some work while typing docker compose commands. This section explains these
9898
* ``--no-reload`` makes all celery processes and django runserver
9999
to use no reload and do not watch for files changes
100100
* ``--ngrok`` is useful when it's required to access the local instance from outside (e.g. GitHub webhook)
101+
* ``--ext-theme`` to use the new dashboard templates
102+
* ``--webpack`` to start the Webpack dev server for the new dashboard templates
101103

102104
``inv docker.shell``
103105
Opens a shell in a container (web by default).

docs/dev/style-guide.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,11 @@ This means that *both content and navigation path* for all sections should fit a
187187
Explanation
188188
~~~~~~~~~~~
189189

190-
* Introduce the scope: **“This article introduces ...”**
191-
(write this as the very first thing,
192-
then consider rewriting it or turning it into an internal comment afterwards).
190+
* Title convention: Use words indicating explanation in the title.
191+
Like **Understanding <subject>**, **Dive into <subject>**, **Introduction to <subject>** etc.
192+
* Introduce the scope in the first paragraph: **“This article introduces ...”**.
193+
Write this as the very first thing,
194+
then re-read it and potentially shorten it later in your writing process.
193195
* Cross-reference the related How-to Guide.
194196
Put a ``seealso::`` somewhere visible.
195197
It should likely be placed right after the introduction,
@@ -200,9 +202,17 @@ Explanation
200202
How-to guides
201203
~~~~~~~~~~~~~
202204

203-
* Title should begin with **“How to ...”**,
204-
but navigation titles should not contain the “How to” part.
205+
* Title should begin with **“How to ...”**.
206+
If the how-to guide is specific for a tool, make sure to note it in the title.
207+
* Navigation titles should not contain the “How to” part.
208+
Navigation title for "How to create a thing" is **Creating a thing**.
205209
* Introduce the scope: **“In this guide, we will…”**
210+
211+
* Introduction paragraph suggestions:
212+
213+
* "This guide shows <something>. <motivation>"
214+
* "<motivation>. This guide shows you how."
215+
206216
* Cross-reference related explanation.
207217
Put a ``seealso::`` somewhere visible,
208218
It should likely be placed right after the introduction
@@ -231,6 +241,7 @@ Tutorial
231241

232242
.. note:: We don’t really have tutorials targeted in the systematic refactor, so this checklist isn’t very important right now.
233243

244+
* "Getting started with <subject>" is likely a good start!
234245
* Cross-reference related explanation and how-to.
235246
* Try not to explain things too much, and instead link to the explanation content.
236247
* **Refactor other resources** so you can use references instead of disturbing the flow of the tutorial.

docs/user/connected-accounts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to connect your Git repository
22
==================================
33

4-
In this article, we explain how connecting your Read the Docs account to one of the supported Git providers
4+
In this article, we explain how connecting your Read the Docs account to |git_providers_or|
55
automatically configures your Git repository and your Read the Docs project.
66

77
✅️ Signed up with your Git provider?

docs/user/guides/access/index.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
How-to guides: security and access
2+
==================================
3+
4+
⏩️ :doc:`Single Sign-On (SSO) with GitHub, GitLab, or Bitbucket </guides/setup-single-sign-on-github-gitlab-bitbucket>`
5+
When using an :doc:`organization </commercial/organizations>` on |com_brand|,
6+
you can configure SSO for your users to authenticate to Read the Docs.
7+
8+
⏩️ :doc:`Single Sign-On (SSO) with Google Workspace </guides/setup-single-sign-on-google-email>`
9+
When using an :doc:`organization </commercial/organizations>` on |com_brand|,
10+
you can configure SSO for your users to authenticate to Read the Docs.
11+
This guide is written for Google Workspace.
12+
13+
⏩️ :doc:`Managing Read the Docs teams </guides/manage-read-the-docs-teams>`
14+
When using an :doc:`organization </commercial/organizations>` on |com_brand|,
15+
it's possible to create different teams with custom access levels.
16+
17+
⏩️ :doc:`Manually importing private repositories </guides/importing-private-repositories>`
18+
You can grant access to private Git repositories using |com_brand| using a custom process if required.
19+
Here is how you set it up.
20+
21+
⏩️ :doc:`Using private Git submodules </guides/private-submodules>`
22+
If you are using private Git repositories and they also contain private Git submodules,
23+
you need to follow a few special steps.
24+
25+
⏩️ :doc:`Installing private python packages </guides/private-python-packages>`
26+
If you have private dependencies, you can install them from
27+
a :ref:`private Git repository <guides/private-python-packages:From a Git repository>` or
28+
a :ref:`private repository manager <guides/private-python-packages:From a repository manager other than PyPI>`.
29+
30+
.. toctree::
31+
:maxdepth: 1
32+
:hidden:
33+
34+
Single Sign-On (SSO) with GitHub, GitLab, or Bitbucket </guides/setup-single-sign-on-github-gitlab-bitbucket>
35+
Single Sign-On (SSO) with Google Workspace </guides/setup-single-sign-on-google-email>
36+
Managing Read the Docs teams </guides/manage-read-the-docs-teams>
37+
Manually importing private repositories </guides/importing-private-repositories>
38+
Using private Git submodules </guides/private-submodules>
39+
Installing private python packages </guides/private-python-packages>

docs/user/guides/administrators.rst

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/user/guides/authors.rst

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
How-to guides: best practices
2+
=============================
3+
4+
Over the years,
5+
we have become familiar with a number of methods that work well and which we consider **best practice**.
6+
7+
⏩️ :doc:`Best practices for linking to your documentation </guides/best-practice/links>`
8+
Documentation changes over time,
9+
and links and cross-references can become challenging manage for various reasons.
10+
Here is a set of best practices explaining and addressing these challenges.
11+
12+
⏩️ :doc:`Deprecating content </guides/deprecating-content>`
13+
Best practice for removing or deprecating documentation content.
14+
15+
⏩️ :doc:`Creating reproducible builds </guides/reproducible-builds>`
16+
Every documentation project has dependencies that are required to build it.
17+
Using an unspecified versions of these dependencies means that your project can start breaking.
18+
In this guide,
19+
learn how to protect your project against breaking randomly.
20+
**This is one of our most popular guides!**
21+
22+
⏩️ :doc:`Search Engine Optimization (SEO) for documentation projects </guides/technical-docs-seo-guide>`
23+
This article explains how documentation can be optimized to appear in search results,
24+
increasing traffic to your docs.
25+
26+
⏩️ :doc:`Hiding a version </guides/hiding-a-version>`
27+
Learn how you can keep your entire version history online without overwhelming the reader with version choices.
28+
29+
.. toctree::
30+
:maxdepth: 1
31+
:hidden:
32+
33+
Deprecating content </guides/deprecating-content>
34+
Best practices for linking to your documentation </guides/best-practice/links>
35+
Creating reproducible builds </guides/reproducible-builds>
36+
Search Engine Optimization (SEO) for documentation projects </guides/technical-docs-seo-guide>
37+
Hiding a version </guides/hiding-a-version>

docs/user/guides/build-troubleshooting.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
How to troubleshoote build errors
2-
=================================
1+
Troubleshooting build errors
2+
============================
33

44
.. include:: /shared/contribute-to-troubleshooting.rst
55

6+
This guide provides some common errors and resolutions encountered in the :doc:`build process </builds>`.
67

78
Git errors
89
----------

docs/user/guides/build-using-too-many-resources.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Troubleshooting slow builds
22
===========================
33

4+
This page contains a list of the most common issues that are slowing down builds.
5+
46
In case you are waiting a long time for your builds to finish
57
or your builds are terminated by exceeding general resource limits,
68
this troubleshooting guide will help you resolve some of the most common issues causing slow builds.
9+
Even if you are not facing any immediate performance issues,
10+
it's always good to be familiar with the most common ones.
711

812
Build resources on Read the Docs are limited to make sure that users don't overwhelm our build systems.
913
The current build limits can be found on our :ref:`Build resources reference <builds:Build resources>`.

docs/user/guides/build/index.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
How-to guides: build process
2+
============================
3+
4+
⏩️ :doc:`Setup build notifications and webhooks </guides/build-notifications>`
5+
Build notifications can alert you when your builds fail so you can take immediate action.
6+
In this guide,
7+
you will learn how to get notified through various available channel integrations,
8+
including email and chat.
9+
10+
⏩️ :doc:`Configuring pull request builds </guides/pull-requests>`
11+
Have your documentation built and access a preview for every :doc:`pull request builds </pull-requests>`.
12+
13+
⏩️ :doc:`Using custom environment variables </guides/environment-variables>`
14+
Extra environment variables, for instance secrets, may be needed in the build process and can be defined from the project's :term:`dashboard`.
15+
16+
⏩️ :doc:`Managing versions automatically </guides/automation-rules>`
17+
Automating your versioning on Read the Docs means you only have to handle your versioning logic in Git.
18+
Learn how to define rules to automate creation of new versions on Read the Docs,
19+
entirely using your Git repository's version logic.
20+
21+
22+
.. seealso:
23+
24+
:doc:`/builds`
25+
An overview and introduction to the build process.
26+
27+
.. toctree::
28+
:maxdepth: 1
29+
:hidden:
30+
31+
Setup build notifications and webhooks </guides/build-notifications>
32+
Configuring pull request builds </guides/pull-requests>
33+
Using custom environment variables </guides/environment-variables>
34+
Managing versions automatically </guides/automation-rules>

0 commit comments

Comments
 (0)