doc: add a hook crossref type

Allow writing

    🪝`pytest_cmdline_main`

instead of

    :func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>`
This commit is contained in:
Ran Benita
2021-12-08 16:19:09 +02:00
parent 37d44434d8
commit 0e69c62ece
7 changed files with 90 additions and 37 deletions

View File

@@ -985,7 +985,7 @@ class CallSpec2:
@final
class Metafunc:
"""Objects passed to the :func:`pytest_generate_tests <_pytest.hookspec.pytest_generate_tests>` hook.
"""Objects passed to the :hook:`pytest_generate_tests` hook.
They help to inspect a test function and to generate tests according to
test configuration or values specified in the class or module where a