mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
doc: Fix typos in contributing.rst (#10961)
This commit is contained in:
parent
7418d2ccc4
commit
782c663c0c
@ -179,11 +179,11 @@ of targets and allows testing against multiple different Python environments:
|
|||||||
tox -e py310
|
tox -e py310
|
||||||
|
|
||||||
* To run unit tests for a specific Python version and turn on deprecation
|
* To run unit tests for a specific Python version and turn on deprecation
|
||||||
warnings on so they're shown in the test output::
|
warnings so they're shown in the test output::
|
||||||
|
|
||||||
PYTHONWARNINGS=all tox -e py310
|
PYTHONWARNINGS=all tox -e py310
|
||||||
|
|
||||||
* Arguments to ``pytest`` can be passed via ``tox``, e.g. in order to run a
|
* Arguments to ``pytest`` can be passed via ``tox``, e.g., in order to run a
|
||||||
particular test::
|
particular test::
|
||||||
|
|
||||||
tox -e py310 tests/test_module.py::test_new_feature
|
tox -e py310 tests/test_module.py::test_new_feature
|
||||||
@ -224,7 +224,7 @@ necessary:
|
|||||||
|
|
||||||
Utility functions and pytest fixtures for testing are provided in
|
Utility functions and pytest fixtures for testing are provided in
|
||||||
``sphinx.testing``. If you are a developer of Sphinx extensions, you can write
|
``sphinx.testing``. If you are a developer of Sphinx extensions, you can write
|
||||||
unit tests with using pytest. At this time, ``sphinx.testing`` will help your
|
unit tests by using pytest. At this time, ``sphinx.testing`` will help your
|
||||||
test implementation.
|
test implementation.
|
||||||
|
|
||||||
How to use pytest fixtures that are provided by ``sphinx.testing``? You can
|
How to use pytest fixtures that are provided by ``sphinx.testing``? You can
|
||||||
@ -234,7 +234,7 @@ files like this::
|
|||||||
pytest_plugins = 'sphinx.testing.fixtures'
|
pytest_plugins = 'sphinx.testing.fixtures'
|
||||||
|
|
||||||
If you want to know more detailed usage, please refer to ``tests/conftest.py``
|
If you want to know more detailed usage, please refer to ``tests/conftest.py``
|
||||||
and other ``test_*.py`` files under ``tests`` directory.
|
and other ``test_*.py`` files under the ``tests`` directory.
|
||||||
|
|
||||||
|
|
||||||
Contribute documentation
|
Contribute documentation
|
||||||
@ -254,7 +254,7 @@ Build the documentation
|
|||||||
|
|
||||||
We use `the tox tool <https://tox.wiki/en/latest/>`__ to quickly build the
|
We use `the tox tool <https://tox.wiki/en/latest/>`__ to quickly build the
|
||||||
documentation. Tox is kind-of like a Makefile, but includes the ability to
|
documentation. Tox is kind-of like a Makefile, but includes the ability to
|
||||||
intsall an isolated environment used to run each task.
|
install an isolated environment used to run each task.
|
||||||
|
|
||||||
To build the documentation with ``tox``, run the following command::
|
To build the documentation with ``tox``, run the following command::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user