From 6d003e763728d972db52ae4658f8447ab9186932 Mon Sep 17 00:00:00 2001 From: Markus Heikkinen Date: Tue, 21 Jun 2022 11:27:22 +0200 Subject: [PATCH] Remove sphinx_autodoc_typehints, fix Notebook duplicate label error --- docs/source/conf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 9c2a691e..ba82cd1e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -39,12 +39,13 @@ "IPython.sphinxext.ipython_console_highlighting", "m2r2", "sphinx.ext.autodoc", - "sphinx_autodoc_typehints", "sphinx.ext.autosummary", ] add_module_names = False +# Autodoc settings autodoc_default_options = {"show-inheritance": True} - +autodoc_typehints = "both" +autodoc_typehints_format = "short" autosummary_generate = True set_type_checking_flag = False @@ -53,6 +54,7 @@ # Make sure the target is unique autosectionlabel_prefix_document = True +autosectionlabel_maxdepth = 2 nbsphinx_execute = "never" @@ -106,4 +108,4 @@ spelling_word_list_filename='spelling_wordlist.txt' # Show suggestion in console output spelling_show_suggestions=False -spelling_exclude_patterns=['examples/*'] +spelling_exclude_patterns=['examples/*.nblink']