Skip to content

Commit 616482a

Browse files
authored
Add vale and fix issues detected (#12257)
This is an initial run of Vale, based off of #9521 I wasn't able to update that PR, so pulling that one in here. We can add more rules as we go. <!-- readthedocs-preview docs start --> --- :books: Documentation previews :books: - User's documentation (`docs`): https://docs--12257.org.readthedocs.build/12257/ <!-- readthedocs-preview docs end --> <!-- readthedocs-preview dev start --> - Developer's documentation (`dev`): https://dev--12257.org.readthedocs.build/12257/ <!-- readthedocs-preview dev end -->
1 parent 60b6878 commit 616482a

File tree

16 files changed

+47
-11
lines changed

16 files changed

+47
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- run: pip install --user tox
6262
- run: tox -e pre-commit
6363
- run: tox -e migrations
64+
- run: tox -e vale
6465
- save_cache:
6566
key: pre-commit-cache-{{ checksum "pre-commit-cache-key.txt" }}
6667
paths:

.vale.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
StylesPath = docs/vale/
2+
MinAlertLevel = suggestion
3+
4+
[*.rst]
5+
6+
BasedOnStyles = Vale, RTD
7+
Vale.Repetition = YES
8+
9+
# TODO: Enable spelling, but it's currently too noisy
10+
Vale.Spelling = NO

docs/dev/design/build-images.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Exposing users how we want them to use our platform will allow us to be able to
427427
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 maintenance work required from the the core team.
430+
will reduce the maintenance work required from 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-search-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Future features
309309

310310
- Multi match (query as is)
311311
- Simple query string (allows using the ES query syntax)
312-
- Fuzzy search (same as multi match, but with with fuzziness)
312+
- Fuzzy search (same as multi match, but with fuzziness)
313313

314314
- Add the ``org`` filter,
315315
so users can search by all projects that belong

docs/dev/design/redirects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Improving page redirects
250250
without having to create an exact redirect for each version.
251251

252252
Similar to exact redirects, users need to add the ``:splat`` placeholder explicitly.
253-
This means that that page redirects are the same as exact redirects,
253+
This means that page redirects are the same as exact redirects,
254254
with the only difference that they apply to all versions.
255255

256256
Example:

docs/dev/design/sphinx-jquery.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ When setting ``jquery_force_enable=True``, jQuery is added no matter the Sphinx
9292
jQuery version and inclusion
9393
----------------------------
9494

95-
jQuery should be be shipped together with the Python package and not be referenced from a CDN.
95+
jQuery should be shipped together with the Python package and not be referenced from a CDN.
9696

9797
Sphinx has kept relatively up to date with jQuery, and this package intends to follow.
9898
The most recently bundled jQuery version was v3.5.1 and only two releases have happened since: 3.6.0 and 3.6.1.

docs/dev/style-guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ReStructuredText for both the RTD user documentation and this developer document
5656
whitespace consistency, and other minor issues.
5757

5858
You can fix many linting issues automatically by installing and running `pre-commit` locally.
59-
To run it on content you have have already committed, use the ``--from-ref`` and ``--to-ref`` `flags <https://pre-commit.com/#pre-commit-run>`__.
59+
To run it on content you have already committed, use the ``--from-ref`` and ``--to-ref`` `flags <https://pre-commit.com/#pre-commit-run>`__.
6060

6161
.. code-block:: bash
6262

docs/user/build-customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Where to put files
9898
It is your responsibility to generate HTML and other formats of your documentation when overriding the steps from :ref:`config-file/v2:build.jobs.build`.
9999
The contents of the ``$READTHEDOCS_OUTPUT/<format>/`` directory will be hosted as part of your documentation.
100100

101-
We store the the base folder name ``_readthedocs/`` in the environment variable ``$READTHEDOCS_OUTPUT`` and encourage that you use this to generate paths.
101+
We store the base folder name ``_readthedocs/`` in the environment variable ``$READTHEDOCS_OUTPUT`` and encourage that you use this to generate paths.
102102

103103
Supported :ref:`formats <downloadable-documentation:accessing offline formats>` are published if they exist in the following directories:
104104

docs/user/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ How do I add additional software dependencies for my documentation?
109109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110110

111111
For most Python dependencies,
112-
you can can specify a requirements file which details your dependencies.
112+
you can specify a requirements file which details your dependencies.
113113
You can also set your project documentation to install your Python project itself as a dependency.
114114

115115
.. seealso::

docs/user/gsoc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Getting started
3838
The :doc:`rtd-dev:install` doc is probably the best place to get going.
3939
It will walk you through getting a basic environment for Read the Docs setup.
4040

41-
Then you can look through our :doc:`rtd-dev:contribute` doc for information on how to get started contributing to RTD.
41+
Then you can look through our :doc:`rtd-dev:contribute` doc for information on how to get started contributing to Read the Docs.
4242

4343
People who have a history of submitting pull requests will be prioritized in our Summer of Code selection process.
4444

0 commit comments

Comments
 (0)