Skip to content

Commit

Permalink
fix tools vs tool in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed May 17, 2021
1 parent 87cd2b3 commit cff267c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
16 changes: 8 additions & 8 deletions doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,28 @@ All commands that have a `backend` option (*run*, *clean*, *forget*, etc),
will use this option without the need for this option in the command line.


tools.doit.commands
^^^^^^^^^^^^^^^^^^^
tool.doit.commands
^^^^^^^^^^^^^^^^^^

To configure options for a specific command, use a section with
the command name under `tools.doit.commands`:
the command name under `tool.doit.commands`:

.. code-block:: toml
[tools.doit.commands.list]
[tool.doit.commands.list]
status = true
subtasks = true
tools.doit.plugins
^^^^^^^^^^^^^^^^^^
tool.doit.plugins
^^^^^^^^^^^^^^^^^

Check the :ref:`plugins <plugins>` section for an introduction
on available plugin categories.


tools.doit.tasks
^^^^^^^^^^^^^^^^
tool.doit.tasks
^^^^^^^^^^^^^^^

To configure options for a specific task, use a section with
the task name under `tool.doit.tasks`:
Expand Down
9 changes: 8 additions & 1 deletion doc/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,16 @@ the *class* `FooCmd`, located at the module `my_plugins.py`:

.. code-block:: toml
[tools.doit.plugins]
[tool.doit.plugins]
COMMAND = { foo = "my_plugins:FooCmd" }
or, alternately:

.. code-block:: toml
[tool.doit.plugins.COMMAND]
foo = "my_plugins:FooCmd"
Similarly, in `doit.cfg`:

.. code-block:: ini
Expand Down

0 comments on commit cff267c

Please sign in to comment.