Skip to content

Commit 2ba2a25

Browse files
stsewdagjohnson
authored andcommitted
Fix some typos in docs and code (#4646)
1 parent ab71feb commit 2ba2a25

File tree

15 files changed

+19
-19
lines changed

15 files changed

+19
-19
lines changed

docs/api/v1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Doc Search
7070
It returns data in the format of Elastic Search,
7171
which requires a bit of traversing to use.
7272

73-
In the future we might change the format of this endpoint to make it more abstact.
73+
In the future we might change the format of this endpoint to make it more abstract.
7474

7575
An example URL: https://readthedocs.org/api/v2/docsearch/?project=docs&version=latest&q=subdomains
7676

docs/builds.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ we will first look for a ``mkdocs.yml`` file in the root of your repository.
4747
If we don't find one,
4848
we will generate one for you.
4949

50-
Then MkDocs will build any files with a ``.md`` extension within the directory specifed as ``docs_dir`` in the ``mkdocs.yml``.
50+
Then MkDocs will build any files with a ``.md`` extension within the directory specified as ``docs_dir`` in the ``mkdocs.yml``.
5151

5252
If no ``mkdocs.yml`` was found in the root of your repository and we generated one for you,
5353
Read the Docs will attempt to set ``docs_dir`` by sequentially searching for a ``docs``, ``doc``, ``Doc``, or ``book`` directory.

docs/design/yaml-file.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
YAML Configuration File
22
=======================
33

4-
Backgroud
5-
---------
4+
Background
5+
----------
66

77
The current YAML configuration file is in beta state.
88
There are many options and features that it doesn't support yet.

docs/gsoc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Currently we have our documentation & website translated on Transifex,
108108
but we don't have a management process for it.
109109
This means that translations will often sit for months before making it back into the site and being available to users.
110110

111-
This project would include puting together a workflow for translations:
111+
This project would include putting together a workflow for translations:
112112

113113
* Communicate with existing translators and see what needs they have
114114
* Help formalize the process that we have around Transifex to make it easier to contribute to
@@ -119,7 +119,7 @@ Support for additional build steps for linting & testing
119119

120120
Currently we only build documentation on Read the Docs,
121121
but we'd also like to add additional build steps that lets users perform more actions.
122-
This would likely take the form of wraping some of the existing `Sphinx builders <http://www.sphinx-doc.org/en/stable/builders.html>`_,
122+
This would likely take the form of wrapping some of the existing `Sphinx builders <http://www.sphinx-doc.org/en/stable/builders.html>`_,
123123
and giving folks a nice way to use them inside Read the Docs.
124124

125125
It would be great to have wrappers for the following as a start:

docs/guides/manage-translations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ This command will leave the ``.po`` files needed for building the documentation
167167
.. warning::
168168

169169
It's important to use always the same method to translate the documentation and do not mix them.
170-
Otherwise, it's very easy to end up with inconsistent translations or loosing already translated text.
170+
Otherwise, it's very easy to end up with inconsistent translations or losing already translated text.
171171

172172

173173
Build the documentation in target language

readthedocs/config/tests/test_utils.py

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

55

66
def test_apply_fs_with_empty_contents(tmpdir):
7-
# Doesn't do anything if second paramter is empty.
7+
# Doesn't do anything if second parameter is empty.
88
apply_fs(tmpdir, {})
99
assert tmpdir.listdir() == []
1010

readthedocs/core/symlink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def symlink_subprojects(self):
176176
subprojects = set()
177177
rels = self.get_subprojects()
178178
if rels.count():
179-
# Don't creat the `projects/` directory unless subprojects exist.
179+
# Don't create the `projects/` directory unless subprojects exist.
180180
if not os.path.exists(self.subproject_root):
181181
safe_makedirs(self.subproject_root)
182182
for rel in rels:

readthedocs/notifications/storages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _message_queryset(self, include_read=False):
117117
# and replaced PERSISTENT_MESSAGE_LEVELS by NON_PERSISTENT_MESSAGE_LEVELS
118118

119119
def _store(self, messages, response, *args, **kwargs):
120-
# There are alredy saved.
120+
# There are already saved.
121121
return [
122122
message for message in messages
123123
if message.level not in NON_PERSISTENT_MESSAGE_LEVELS

readthedocs/notifications/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ def message_user(self, message, level=messages.INFO, extra_tags='',
105105
Send message through messages framework
106106
"""
107107
# TODO generalize this or check if implementation in ModelAdmin is
108-
# useable here
108+
# usable here
109109
messages.add_message(self.request, level, message, extra_tags=extra_tags,
110110
fail_silently=fail_silently)

readthedocs/restapi/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def sync_versions(project, versions, type): # pylint: disable=redefined-builtin
109109

110110

111111
def set_or_create_version(project, slug, version_id, verbose_name, type_):
112-
"""Search or create a version and set its machine atribute to false."""
112+
"""Search or create a version and set its machine attribute to false."""
113113
version = (
114114
project.versions
115115
.filter(slug=slug)

readthedocs/restapi/views/task_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_status_data(task_name, state, data, error=None):
3030
'started': state in STARTED_STATES,
3131
'finished': state in FINISHED_STATES,
3232
# When an exception is raised inside the task, we keep this as SUCCESS
33-
# and add the exception messsage into the 'error' key
33+
# and add the exception message into the 'error' key
3434
'success': state in SUCCESS_STATES and error is None,
3535
}
3636
if error is not None:

readthedocs/rtd_tests/tests/test_celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_public_task_exception(self):
185185
"""
186186
Test when a PublicTask rises an Exception.
187187
188-
The exception should be catched and added to the ``info`` attribute of
188+
The exception should be caught and added to the ``info`` attribute of
189189
the result. Besides, the task should be SUCCESS.
190190
"""
191191
from readthedocs.core.utils.tasks import PublicTask

readthedocs/rtd_tests/tests/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def test_user_can_change_project_with_same_lang(self):
396396
self.assertEqual(project_a.language, 'en')
397397
self.assertEqual(project_b.language, 'es')
398398
data = model_to_dict(project_a)
399-
# Same languge
399+
# Same language
400400
data['language'] = 'en'
401401
resp = self.client.post(
402402
reverse(

readthedocs/rtd_tests/tests/test_project_symlinks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TempSiteRootTestCase(TestCase):
6464
"""
6565
Override SITE_ROOT and patch necessary pieces to inspect symlink structure.
6666
67-
This uses some patches and overidden settings to build out symlinking in a
67+
This uses some patches and overridden settings to build out symlinking in a
6868
temporary path. Each test is therefore isolated, and cleanup will remove
6969
these paths after the test case wraps up.
7070
"""
@@ -454,7 +454,7 @@ def test_subproject_alias_with_spaces(self):
454454
self.assertFilesystem(filesystem)
455455

456456
def test_remove_subprojects(self):
457-
"""Nonexistant subprojects are unlinked"""
457+
"""Nonexistent subprojects are unlinked"""
458458
self.project.add_subproject(self.subproject)
459459
self.symlink.symlink_subprojects()
460460
filesystem = {

readthedocs/vcs_support/backends/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def are_submodules_available(self):
6767
6868
Temporarily, we support skipping these steps as submodule step can
6969
fail if using private submodules. This will eventually be
70-
configureable with our YAML config.
70+
configurable with our YAML config.
7171
"""
7272
# TODO remove with https://github.com/rtfd/readthedocs-build/issues/30
7373
from readthedocs.projects.models import Feature
@@ -108,7 +108,7 @@ def clone(self):
108108
.. note::
109109
110110
Temporarily, we support skipping submodule recursive clone via a
111-
feature flag. This will eventually be configureable with our YAML
111+
feature flag. This will eventually be configurable with our YAML
112112
config.
113113
"""
114114
# TODO remove with https://github.com/rtfd/readthedocs-build/issues/30

0 commit comments

Comments
 (0)