Skip to content

Commit 51b4bb1

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing typos automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 980a30d commit 51b4bb1

Some content is hidden

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

56 files changed

+92
-92
lines changed

.github/ISSUE_TEMPLATE/feature.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Feature/improvement proposal
3-
about: Propose a new feauture or improvement for Read the Docs
3+
about: Propose a new feature or improvement for Read the Docs
44
---
55

66
## What's the problem this feature will solve?

.github/workflows/pip-tools.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Action to run pip-compile weekly and create a Pull Request with the changes.
2-
# Althought GitHub says that pip-compile is supported by dependabot, we couldn't make it work together.
2+
# Although GitHub says that pip-compile is supported by dependabot, we couldn't make it work together.
33
# That's why this action exists.
44
# If we ever find the proper configuration for dependabot+pip-compile,
55
# we can delete this action.

CHANGELOG.rst

+13-13
Large diffs are not rendered by default.

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55

66
# Options should be aligned with how the documentation is built on RTD
7-
# (except for '--keep-going', failing fast is prefered on local builds)
7+
# (except for '--keep-going', failing fast is preferred on local builds)
88
# We also remove '-E' to reduce the time of rebuilding reference indexes
99
# on each build.
1010
SPHINXOPTS = -T -j auto -W

docs/dev/design/better-doc-urls-handling.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Instead of trying to map a URL to a view,
4242
we first analyze the root project (given from the subdomain),
4343
and based on that we map each part of the URL to the *current* project and version.
4444

45-
This will allow us to re-use this code in our unresolver
45+
This will allow us to reuse this code in our unresolver
4646
without the need to override the Django's urlconf at runtime,
4747
or guessing a project only by the structure of its URL.
4848

docs/dev/design/build-images.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ and we can roll back if the new pre-compiled version was built with a problem.
265265

266266
Installing always the latest version is harder to maintain.
267267
It will require building the newest version each time a new patch version is released.
268-
Beacause of that, Read the Docs will always be behind official releases.
268+
Because of that, Read the Docs will always be behind official releases.
269269
Besides, it will give projects different versions more often.
270270

271271
Exposing to the user the patch version would require to cache many different versions ourselves,
@@ -424,10 +424,10 @@ that doesn't seem to be useful to have the same OS version with different states
424424
Allowing users to install extra languages by using the Config File will cover most of the support requests we have had in the past.
425425
It also will allow us to know more about how our users are using the platform to make future decisions based on this data.
426426
Exposing users how we want them to use our platform will allow us to be able to maintain it longer,
427-
than giving the option to select a specific Docker image by name that we can't guarrantee it will be frozen.
427+
than giving the option to select a specific Docker image by name that we can't guarantee it will be frozen.
428428

429429
Finally, having the ability to deprecate and *remove* pre-built images from our builders over time,
430-
will reduce the maintainance work required from the the core team.
430+
will reduce the maintenance work required from the the core team.
431431
We can always support all the languages versions by installing them at build time.
432432
The only required pre-built image for this are the OS ``-base`` images.
433433
In fact, even after decided to deprecate and removed a pre-built image from the builders,

docs/dev/design/new-notifications-system.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Goals
3434
* Ability to add non-error notifications from the build process
3535
* Add extra metadata associated to the notification: icon, header, body, etc
3636
* Support different types of notifications (e.g. error, warning, note, tip)
37-
* Re-use the new notification system for product updates (e.g. new features, deprecated config keys)
37+
* Reuse the new notification system for product updates (e.g. new features, deprecated config keys)
3838
* Message content lives on Python classes that can be translated and formatted with objects (e.g. Build, Project)
3939
* Message could have richer content (e.g. HTML code) to generate links and emphasis
4040
* Notifications have trackable state (e.g. unread (default)=never shown, read=shown, dismissed=don't show again, cancelled=auto-removed after user action)
@@ -43,7 +43,7 @@ Goals
4343
* Notifications can be attached to Project, Organization, Build and User models
4444
* Specific notifications can be shown under the user's bell icon
4545
* Easy way to cleanup notification on status changes (e.g. subscription failure notification is auto-deleted after CC updated)
46-
* Notifications attached to Organization/Project dissappear for all the users once they are dismissed by anyone
46+
* Notifications attached to Organization/Project disappear for all the users once they are dismissed by anyone
4747

4848

4949
Non-goals
@@ -88,7 +88,7 @@ This section shows all the classes and models involved for the notification syst
8888
.. note:: Accessing the database from the build process
8989

9090
Builders doesn't have access to the database due to security reasons.
91-
We had solved this limitation by creating an API endpoint the builder hits once they need to interact with the databse to get a ``Project``, ``Version`` and ``Build`` resources, create a ``BuildCommand`` resource, etc.
91+
We had solved this limitation by creating an API endpoint the builder hits once they need to interact with the database to get a ``Project``, ``Version`` and ``Build`` resources, create a ``BuildCommand`` resource, etc.
9292

9393
Besides, the build process is capable to trigger Celery tasks that are useful for managing more complex logic
9494
that also require accessing from and writing to the database.
@@ -116,7 +116,7 @@ and some helper logic to return in the API response.
116116
body = str
117117
icon = str
118118
icon_style = str(SOLID, DUOTONE)
119-
type = str(ERROR, WARINIG, NOTE, TIP)
119+
type = str(ERROR, WARNING, NOTE, TIP)
120120
121121
def get_display_icon(self):
122122
if self.icon:
@@ -201,7 +201,7 @@ It contains an identifier (``message_id``) pointing to one of the messages defin
201201
message_id = models.CharField(max_length=128)
202202
203203
# UNREAD: the notification was not shown to the user
204-
# READ: the notifiation was shown
204+
# READ: the notification was shown
205205
# DISMISSED: the notification was shown and the user dismissed it
206206
# CANCELLED: removed automatically because the user has done the action required (e.g. paid the subscription)
207207
state = models.CharField(
@@ -210,7 +210,7 @@ It contains an identifier (``message_id``) pointing to one of the messages defin
210210
db_index=True,
211211
)
212212
213-
# Makes the notification imposible to dismiss (useful for Build notifications)
213+
# Makes the notification impossible to dismiss (useful for Build notifications)
214214
dismissable = models.BooleanField(default=False)
215215
216216
# Show the notification under the bell icon for the user

docs/dev/design/new-search-api.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ like the projects, versions, and the query that were used in the final search.
139139
And the ``version``, ``project``, and ``project_alias`` attributes will
140140
now be objects.
141141

142-
We could just re-use the old response too,
142+
We could just reuse the old response too,
143143
since the only breaking changes would be the attributes now being objects,
144144
and we aren't adding any new information to those objects (yet).
145145
But also, re-using the current serializers shouldn't be a problem either.
@@ -230,7 +230,7 @@ the readthedocs.org/readthedocs.com domains.
230230
We have two types:
231231

232232
Project scoped search:
233-
Search files and versions of the curent project only.
233+
Search files and versions of the current project only.
234234

235235
Global search:
236236
Search files and versions of all projects in .org,

docs/dev/design/pr-builder.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ We might consider adding a ``VERSION_TYPES`` to the ``Version`` model.
4343
- If we go with ``VERSION_TYPES`` we can add something like ``pull_request`` alongside Tag and Branch.
4444

4545
We should add ``Version`` and ``Build`` Model Managers for PR and Regular Versions and Builds.
46-
The proposed names for PR and Regular Version and Build Mangers are ``external`` and ``internal``.
46+
The proposed names for PR and Regular Version and Build Managers are ``external`` and ``internal``.
4747

4848
We can then use ``Version.internal.all()`` to get all regular versions,
4949
``Version.external.all()`` to get all PR versions.

docs/dev/design/secure-api-access-from-builders.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Why attach tokens to users?
9898
---------------------------
9999

100100
Attaching tokens to users will ease the implementation,
101-
since we can re-use the code from knox package.
101+
since we can reuse the code from knox package.
102102

103103
Attaching tokens to projects only is possible,
104104
but it will require to manage the authentication manually.
@@ -108,7 +108,7 @@ An alternative is to use the DRF API key package, which doesn't require a user,
108108
but then if we wanted to extend this functionality to our normal APIs, we will have
109109
to implement the authentication manually.
110110

111-
Kepping backwards compatibility
111+
Keeping backwards compatibility
112112
-------------------------------
113113

114114
Access to write API V2 is restricted to superusers,
@@ -161,7 +161,7 @@ since it also handles authentication).
161161
Decision
162162
--------
163163

164-
Due to the fact that the required featues from knox are not released yet,
164+
Due to the fact that the required features from knox are not released yet,
165165
we have decided to use DRF API key instead.
166166

167167
Future work

docs/dev/subscriptions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and it's manually created by the RTD core team.
7474
To create a custom plan, you need to create a new product in Stripe,
7575
and add the product id to the ``RTD_PRODUCTS`` setting mapped to the features that the plan will provide.
7676
After that, you can create a subscription for the organization with the custom product,
77-
our appliction will automatically relate this new product to the organization.
77+
our application will automatically relate this new product to the organization.
7878

7979
Extra products
8080
--------------
@@ -87,4 +87,4 @@ extra product will provide, this product should have the ``extra`` attribute set
8787

8888
To subscribe an organization to an extra product,
8989
you just need to add the product to its subscription with the desired quantity,
90-
our appliction will automatically relate this new product to the organization.
90+
our application will automatically relate this new product to the organization.

docs/user/api/v3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ Remote repository listing
18761876
The ``results`` in response is an array of remote repositories data.
18771877

18781878
:query string name: return remote repositories containing the name
1879-
:query string full_name: return remote repositories containing the full name (it inclues the username/organization the project belongs to)
1879+
:query string full_name: return remote repositories containing the full name (it includes the username/organization the project belongs to)
18801880
:query string vcs_provider: return remote repositories for specific vcs provider (``github``, ``gitlab`` or ``bitbucket``)
18811881
:query string organization: return remote repositories for specific remote organization (using remote organization ``slug``)
18821882
:query string expand: allows to add/expand some extra fields in the response.

docs/user/builds.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Read the Docs supports three different mechanisms to cancel a running build:
9494
When Read the Docs detects a push to a version that is already building,
9595
it cancels the running build and starts a new build using the latest commit.
9696

97-
:Programatically:
97+
:Programmatically:
9898

9999
You can use user-defined commands on ``build.jobs`` or ``build.commands`` (see :doc:`build-customization`)
100100
to check for your own cancellation condition and then return exit code ``183`` to cancel a build.

docs/user/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ According to `its own documentation <https://jupyterbook.org/>`_,
325325

326326
Even though `Jupyter Book leverages Sphinx "for almost everything that it
327327
does" <https://jupyterbook.org/explain/sphinx.html#jupyter-book-is-a-distribution-of-sphinx>`_,
328-
it purposedly hides Sphinx ``conf.py`` files from the user,
328+
it purposely hides Sphinx ``conf.py`` files from the user,
329329
and instead generates them on the fly from its declarative ``_config.yml``.
330330
As a result, you need to follow some extra steps
331331
to make Jupyter Book work on Read the Docs.

docs/user/glossary.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ so that you have a reference for how we're using them.
8888
Another name for :term:`project home`.
8989

9090
reproducible
91-
A documentation project is said to be *reproducible* when its sources build correctly on Read the Docs over a periode of many years.
91+
A documentation project is said to be *reproducible* when its sources build correctly on Read the Docs over a period of many years.
9292
You can also think of being *reproducible* as being *robust* or *resillient*.
9393

9494
Being "reproducible" is an important positive quality goal of documentation.

docs/user/guides/pull-requests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ No new builds are started when I open a pull request
8686
Build status is not being reported to your Git provider
8787
If opening a pull request does start a new build, but the build status is not
8888
being updated with your Git provider, then your connected account may have out
89-
dated or insufficient permisisons.
89+
dated or insufficient permissions.
9090

9191
Make sure that you have granted access to the Read the Docs `OAuth App`_ for
9292
your personal or organization GitHub account. You can also try reconnecting

docs/user/intro/import-guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ See our :doc:`/config-file/index` docs for more details.
8686
Using a configuration file :doc:`is required from September 2023 <rtd-blog:migrate-configuration-v2>`.
8787

8888
It is also important to note that the default version of Sphinx is ``v1.8.5``.
89-
We recommend to set the version your project uses :doc:`explicitily with pinned dependencies </guides/reproducible-builds>`.
89+
We recommend to set the version your project uses :doc:`explicitly with pinned dependencies </guides/reproducible-builds>`.
9090

9191
Read the Docs will host multiple versions of your code. You can read more about
9292
how to use this well on our :doc:`/versions` page.

docs/user/science.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Here are some popular activities that are well-supported by Jupyter Book:
130130
Ready to get started?
131131
"""""""""""""""""""""
132132

133-
.. Note that this is a deliberate repitition of a previous segment. Should it repeat? Maybe not, but for now it's nice to be sure that people see it.
133+
.. Note that this is a deliberate repetition of a previous segment. Should it repeat? Maybe not, but for now it's nice to be sure that people see it.
134134
135135
* All new to this? Take the official :external+jupyterbook:doc:`Jupyter Book Tutorial » <start/your-first-book>`
136136
* Curious for practical code? See the list of :doc:`example projects » </examples>`

docs/user/server-side-search/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ with the following changes:
153153

154154
When searching on a parent project,
155155
results from their subprojects won't be included automatically,
156-
to include results from subprojects use the ``subprojects`` paramater.
156+
to include results from subprojects use the ``subprojects`` parameter.
157157

158158
Authentication and authorization
159159
--------------------------------

docs/user/tutorial/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ If you now click on :guilabel:`View docs`, you will see your documentation live!
206206

207207
If you don't see the ad, you might be using an ad blocker.
208208
Our EthicalAds network respects your privacy, doesn't target you,
209-
and tries to be as unobstrusive as possible,
209+
and tries to be as unobtrusive as possible,
210210
so we would like to kindly ask you to :doc:`not block us </advertising/ad-blocking>` |:heart:|
211211

212212
Basic configuration changes

readthedocs/api/v2/views/integrations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_closed_external_version_response(self, project):
309309

310310
def update_default_branch(self, default_branch):
311311
"""
312-
Update the `Version.identifer` for `latest` with the VCS's `default_branch`.
312+
Update the `Version.identifier` for `latest` with the VCS's `default_branch`.
313313
314314
The VCS's `default_branch` is the branch cloned when there is no specific branch specified
315315
(e.g. `git clone <URL>`).

readthedocs/api/v2/views/model_views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def get_queryset(self):
156156
If an API key is present, we filter by the project associated with the key.
157157
Otherwise, we filter using our API manager method.
158158
159-
With this we check if the user/api key is authorized to acccess the object.
159+
With this we check if the user/api key is authorized to access the object.
160160
"""
161161
api_key = getattr(self.request, "build_api_key", None)
162162
if api_key:
@@ -247,7 +247,7 @@ def get_serializer_class(self):
247247
"""
248248
Return the proper serializer for UI and Admin.
249249
250-
This ViewSet has a sligtly different pattern since we want to
250+
This ViewSet has a slightly different pattern since we want to
251251
pre-process the `command` field before returning it to the user, and we
252252
also want to have a specific serializer for admins.
253253
"""

readthedocs/api/v3/serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def _validate_remote_repository(self, data):
575575
Validate connection between `Project` and `RemoteRepository`.
576576
577577
We don't do anything in community, but we do ensure this relationship
578-
is posible before creating the `Project` on commercial when the
578+
is possible before creating the `Project` on commercial when the
579579
organization has VCS SSO enabled.
580580
581581
If we cannot ensure the relationship here, this method should raise a

readthedocs/builds/migrations/0007_add-automation-rules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Migration(migrations.Migration):
6666
"action_arg",
6767
models.CharField(
6868
blank=True,
69-
help_text="Value used for the action to perfom an operation",
69+
help_text="Value used for the action to perform an operation",
7070
max_length=255,
7171
null=True,
7272
verbose_name="Action argument",

readthedocs/builds/models.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ def config(self):
892892
"""
893893
# TODO: now that we are using a proper JSONField here, we could
894894
# probably change this field to be a ForeignKey to avoid repeating the
895-
# config file over and over again and re-use them to save db data as
895+
# config file over and over again and reuse them to save db data as
896896
# well
897897
if self._config and self.CONFIG_KEY in self._config:
898898
return (
@@ -1116,7 +1116,7 @@ class BuildCommandResultMixin:
11161116
Mixin for common command result methods/properties.
11171117
11181118
Shared methods between the database model :py:class:`BuildCommandResult` and
1119-
non-model respresentations of build command results from the API
1119+
non-model representations of build command results from the API
11201120
"""
11211121

11221122
@property
@@ -1236,7 +1236,7 @@ class VersionAutomationRule(PolymorphicModel, TimeStampedModel):
12361236
)
12371237
action_arg = models.CharField(
12381238
_("Action argument"),
1239-
help_text=_("Value used for the action to perfom an operation"),
1239+
help_text=_("Value used for the action to perform an operation"),
12401240
max_length=255,
12411241
null=True,
12421242
blank=True,

readthedocs/builds/version_slug.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def slugify(self, content):
112112
space_replacement="-",
113113
)
114114

115-
# Remove first character wile it's an invalid character for the
115+
# Remove first character while it's an invalid character for the
116116
# beginning of the slug
117117
slugified = slugified.lstrip(self.ok_chars)
118118

readthedocs/config/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def validate_doc_types(self):
530530
Validates that the user only have one type of documentation.
531531
532532
This should be called before validating ``sphinx`` or ``mkdocs`` to
533-
avoid innecessary validations.
533+
avoid unnecessary validations.
534534
"""
535535
with self.catch_validation_error("."):
536536
if "sphinx" in self._raw_config and "mkdocs" in self._raw_config:

readthedocs/config/notifications.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
body=_(
143143
textwrap.dedent(
144144
"""
145-
The name of the package <code>{{pacakge}}</name> is invalid.
145+
The name of the package <code>{{package}}</name> is invalid.
146146
"""
147147
).strip(),
148148
),

readthedocs/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def clear_cache():
2121
"""
2222
# Code run before each test
2323
yield
24-
# Code run afer each test
24+
# Code run after each test
2525
cache.clear()

0 commit comments

Comments
 (0)