Skip to content

Commit 05e2852

Browse files
authored
codespell the docs directory (#11664)
1 parent 24cc300 commit 05e2852

19 files changed

+36
-36
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
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

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

@@ -61,7 +61,7 @@ Look up process
6161
---------------
6262

6363
Proxito will process all documentation requests from a single *docs serve* view,
64-
exluding ``/_`` URLs.
64+
excluding ``/_`` URLs.
6565

6666
This view then will process the current URL using the root project as follows:
6767

docs/dev/design/build-images.rst

Lines changed: 4 additions & 4 deletions
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,
@@ -287,7 +287,7 @@ How do we remove an old Python version?
287287
At some point, an old version of Python will be deprecated (eg. 3.4) and will be removed.
288288
To achieve this, we can just remove the pre-compiled Python version from the cache.
289289

290-
However, unless it's strictly neeed for some specific reason, we shouldn't require to remove support for a Python version
290+
However, unless it's strictly needed for some specific reason, we shouldn't require to remove support for a Python version
291291
as long as we support the Ubuntu OS version where this version was compiled for.
292292

293293
In any case, we will know which projects are using these versions because they are pinning these specific versions in the config file.
@@ -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/file-tree-diff.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ For the initial implementation, we will:
311311
not the whole file.
312312
- MD5 will be the hashing algorithm used.
313313
- Only expose the files that were added, removed, or modified (HTML files only).
314-
The number of lines that changed wont be exposed.
314+
The number of lines that changed won't be exposed.
315315
- Don't store the results in the DB,
316316
we can store the results in a next iteration.
317317
- Expose this feature only via the addons feature.
@@ -320,7 +320,7 @@ For the initial implementation, we will:
320320

321321
Other features that are not mentioned here, like exposing the number of lines that changed,
322322
or a public API, will not be implemented in the initial version,
323-
and may be considered in the future (and thier implementation is subject to change).
323+
and may be considered in the future (and their implementation is subject to change).
324324

325325
Possible issues
326326
---------------
@@ -350,7 +350,7 @@ Future improvements and ideas
350350
we would need to re-fetch that metadata from S3.
351351
Could be a feature request for rclone.
352352
- Detect changes in sections of HTML files.
353-
We could re-use the code we have for search indexing.
353+
We could reuse the code we have for search indexing.
354354
- Expand to other file types
355355
- Allow doing a diff between versions of different projects
356356
- Allow to configure how the main content of the file is detected

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

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

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

Lines changed: 1 addition & 1 deletion
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/redirects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ We can do this in three ways:
386386
We could limit the number of redirects that can be created with query arguments,
387387
or the number of redirects in general.
388388

389-
We hava had only one user requesting this feature,
389+
We have had only one user requesting this feature,
390390
so this is not a priority.
391391

392392
Migration

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

Lines changed: 3 additions & 3 deletions
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/search-integration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ will be indexed as part of the section content:
190190
<h1 id="3">This is also a valid section title</h1>
191191
</header>
192192
<p>
193-
Thi is the content of the third section.
193+
This is the content of the third section.
194194
</p>
195195
</div>
196196

0 commit comments

Comments
 (0)