6464ignored_pattern += "|06-distributed_stress_averaging.py"
6565ignored_pattern += r")"
6666
67+ # Autoapi ignore pattern
68+ autoapi_ignore_list = [
69+ "*/log.py" ,
70+ "*/help.py" ,
71+ "*/mapping_types.py" ,
72+ "*/ipconfig.py" ,
73+ "*/field_base.py" ,
74+ "*/cache.py" ,
75+ "*/misc.py" ,
76+ "*/check_version.py" ,
77+ "*/operators/build.py" ,
78+ "*/operators/specification.py" ,
79+ "*/vtk_helper.py" ,
80+ "*/label_space.py" ,
81+ "*/examples/python_plugins/*" ,
82+ "*/examples/examples.py" ,
83+ "*/gate/*" ,
84+ "*/gatebin/*" ,
85+ "*/grpc/*" ,
86+ "*/property_fields_container.py"
87+ ]
88+
6789# -- General configuration ---------------------------------------------------
6890
6991# If your documentation needs a minimal Sphinx version, state it here.
7597# ones.
7698extensions = [
7799 "enum_tools.autoenum" ,
78- "nbsphinx" ,
79100 "sphinx.ext.autosectionlabel" ,
80- "sphinx.ext.autodoc" ,
81101 "sphinx.ext.graphviz" ,
82102 "sphinx.ext.intersphinx" ,
83103 "sphinx.ext.napoleon" ,
84104 "sphinx.ext.todo" ,
85- "sphinx_autodoc_typehints" ,
86105 "sphinx_copybutton" ,
87106 "sphinx_design" ,
88107 "sphinx_gallery.gen_gallery" ,
89108 'sphinx_reredirects' ,
109+ "ansys_sphinx_theme.extension.autoapi" ,
90110]
91111
92112redirects = {
105125 "pyvista" : ("https://docs.pyvista.org/" , None ),
106126}
107127
108- autosummary_generate = True
128+ autosummary_generate = False
109129
110- autodoc_mock_imports = ["ansys.dpf.core.examples.python_plugins" ]
111130
112131# Add any paths that contain templates here, relative to this directory.
113132# templates_path = ['_templates']
@@ -189,8 +208,6 @@ def reset_servers(gallery_conf, fname, when):
189208 "reset_modules" : (reset_servers ,),
190209}
191210
192- autodoc_member_order = "bysource"
193-
194211
195212# -- Options for HTML output -------------------------------------------------
196213html_short_title = html_title = "PyDPF-Core"
@@ -214,12 +231,39 @@ def reset_servers(gallery_conf, fname, when):
214231 },
215232 "static_search" : {
216233 "threshold" : 0.5 ,
217- "min_chars_for_search" : 2 ,
234+ "limit" : 10 ,
235+ "minMatchCharLength" : 2 ,
218236 "ignoreLocation" : True ,
219237 },
238+ "ansys_sphinx_theme_autoapi" : {
239+ "project" : project ,
240+ "output" : "api" ,
241+ "directory" : "src/ansys" ,
242+ "use_implicit_namespaces" : True ,
243+ "keep_files" : True ,
244+ "own_page_level" : "class" ,
245+ "type" : "python" ,
246+ "options" : [
247+ "members" ,
248+ "undoc-members" ,
249+ "show-inheritance" ,
250+ "show-module-summary" ,
251+ "special-members" ,
252+ ],
253+ "class_content" : "class" ,
254+ "ignore" : autoapi_ignore_list ,
255+ "add_toctree_entry" : True ,
256+ "member_order" : "bysource" ,
257+ }
220258}
221259
222-
260+ # Configuration for Sphinx autoapi
261+ suppress_warnings = [
262+ "autoapi.python_import_resolution" , # Todo: remove suppression of this warning in the future
263+ "design.grid" ,
264+ "config.cache" ,
265+ "design.fa-build" ,
266+ ]
223267
224268# Add any paths that contain custom static files (such as style sheets) here,
225269# relative to this directory. They are copied after the builtin static files,
0 commit comments