summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-09 13:59:33 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-09 13:59:33 -0400
commitf9a3aca8ae61448faf2349df14ce4175e2874be3 (patch)
treef0ed2d74dbe54c3a262620750eab6de4123e40b2 /docs/conf.py
parent22d61a87386c73f3ea8686402ce8327346b58376 (diff)
downloadcmd2-git-f9a3aca8ae61448faf2349df14ce4175e2874be3.tar.gz
Added documentation about decorator order and updated an example
Also: - Deal with warnings when building docs with Sphinx 3.0.0
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index cd320f52..9bb2e855 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -169,3 +169,16 @@ intersphinx_mapping = {'http://docs.python.org/': None}
autodoc_default_options = {
'member-order': 'bysource'
}
+
+# Ignore nitpicky warnings from autodoc which are occurring for very new versions of Sphinx and autodoc
+# They seem to be happening because autodoc is now trying to add hyperlinks to docs for typehint classes
+nitpick_ignore = [
+ ('py:class', 'Callable[[None], None]'),
+ ('py:class', 'cmd2.cmd2.Cmd'),
+ ('py:class', 'cmd2.parsing.Statement'),
+ ('py:class', 'IO'),
+ ('py:class', 'None'),
+ ('py:class', 'Optional[Callable[[...], argparse.Namespace]]'),
+ ('py:class', 'TextIO'),
+ ('py:class', 'Union[None, Iterable, Callable]'),
+]