3939# add extensions path for snippets
4040sys .path .append (os .path .abspath ("./_ext" ))
4141
42- extensions = ['sphinxcontrib.matlab' , 'sphinx.ext.autodoc' , 'sphinx.ext.autosummary' , 'sphinx_design' , 'sphinx_copybutton' , 'snippets' ]
42+ extensions = ['sphinxcontrib.matlab' , 'sphinx.ext.napoleon' , 'sphinx.ext. autodoc' , 'sphinx.ext.autosummary' , 'sphinxcontrib.autodoc_pydantic' , ' sphinx_design' , 'sphinx_copybutton' , 'snippets' , 'enum_tools.autoenum ' ]
4343
4444# Add any paths that contain templates here, relative to this directory.
4545templates_path = ['_templates' ]
8080}
8181
8282copybutton_prompt_text = r">>> |>> "
83- copybutton_prompt_is_regexp = True
83+ copybutton_prompt_is_regexp = True
84+
85+ autodoc_typehints = "description"
86+
87+ ### autodoc_pydantic settings
88+ # hide JSON schemas by default
89+ autodoc_pydantic_model_show_json = False
90+ autodoc_pydantic_settings_show_json = False
91+
92+ # don't show validators or config
93+ autodoc_pydantic_field_list_validators = False
94+ autodoc_pydantic_model_show_config_summary = False
95+ autodoc_pydantic_model_show_validator_summary = False
96+ autodoc_pydantic_model_show_validator_members = False
97+
98+ # hide parameter list in class signature
99+ autodoc_pydantic_settings_hide_paramlist = True
100+
101+ # do not show list of fields if they do not have docstrings
102+ # (e.g. for models we use the main docstring)
103+ autodoc_pydantic_model_undoc_members = False
104+
105+ # get field documentation from field docstrings
106+ autodoc_pydantic_field_doc_policy = "docstring"
0 commit comments