Add plugin hooks to RTD documentation (#415)

This commit is contained in:
Gleb Nikonorov 2020-12-13 18:12:50 -05:00 committed by GitHub
parent a0a5916bd7
commit 51a982cfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 4 deletions

12
docs/api_reference.rst Normal file
View File

@ -0,0 +1,12 @@
API Reference
-------------
This is a reference to the plugin API.
Hooks
~~~~~
This plugin exposes the following hooks:
.. automodule:: pytest_html.hooks
:members:

View File

@ -8,9 +8,12 @@
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
# #
# import os import os
# import sys import sys
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath("../src/"))
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = "pytest-html" project = "pytest-html"
@ -23,7 +26,7 @@ author = "Dave Hunt"
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones. # ones.
extensions = [] extensions = ["sphinx.ext.autodoc"]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"] templates_path = ["_templates"]
@ -54,3 +57,8 @@ html_static_path = ["_static"]
# The master toctree document. # The master toctree document.
master_doc = "index" master_doc = "index"
# -- Options for the autodoc extension ---------------------------------------
autodoc_member_order = "alphabetical"

View File

@ -14,6 +14,7 @@ pytest-html is a plugin for `pytest`_ that generates a HTML report for test resu
installing installing
user_guide user_guide
api_reference
development development
.. _pytest: http://pytest.org .. _pytest: http://pytest.org