Add plugin hooks to RTD documentation (#415)
This commit is contained in:
parent
a0a5916bd7
commit
51a982cfbd
|
@ -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:
|
16
docs/conf.py
16
docs/conf.py
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue