1010 ansys_favicon ,
1111 ansys_logo_white ,
1212 ansys_logo_white_cropped ,
13- get_autoapi_templates_dir_relative_path ,
1413 get_version_match ,
1514 latex ,
1615 pyansys_logo_black ,
@@ -158,8 +157,10 @@ def intersphinx_pyansys_geometry(switcher_version: str):
158157 f"pyansys-geometry-v{ get_version_match (__version__ ).replace ('.' , '-' )} " : "PyAnsys-Geometry" , # noqa: E501
159158 },
160159 },
160+ "ansys_sphinx_theme_autoapi" : {
161+ "project" : project ,
162+ },
161163}
162-
163164# Sphinx extensions
164165extensions = [
165166 "sphinx.ext.intersphinx" ,
@@ -169,7 +170,7 @@ def intersphinx_pyansys_geometry(switcher_version: str):
169170 "jupyter_sphinx" ,
170171 "sphinx_design" ,
171172 "sphinx_jinja" ,
172- "autoapi .extension" ,
173+ "ansys_sphinx_theme .extension.autoapi " ,
173174 "numpydoc" ,
174175]
175176
@@ -239,21 +240,7 @@ def intersphinx_pyansys_geometry(switcher_version: str):
239240master_doc = "index"
240241
241242# Configuration for Sphinx autoapi
242- autoapi_type = "python"
243- autoapi_dirs = ["../../src/ansys" ]
244- autoapi_root = "api"
245- autoapi_options = [
246- "members" ,
247- "undoc-members" ,
248- "show-inheritance" ,
249- "show-module-summary" ,
250- "special-members" ,
251- ]
252- autoapi_template_dir = get_autoapi_templates_dir_relative_path (Path (__file__ ))
253- suppress_warnings = ["autoapi.python_import_resolution" , "design.grid" ]
254- autoapi_python_use_implicit_namespaces = True
255- autoapi_keep_files = True
256- autoapi_own_page_level = "class"
243+ suppress_warnings = ["autoapi.python_import_resolution" , "design.grid" , "config.cache" ]
257244
258245# Examples gallery customization
259246nbsphinx_execute = "always"
@@ -367,19 +354,6 @@ def intersphinx_pyansys_geometry(switcher_version: str):
367354 "wheelhouse-assets" : {"assets" : get_wheelhouse_assets_dictionary ()},
368355}
369356
370-
371- def prepare_jinja_env (jinja_env ) -> None :
372- """
373- Customize the jinja env.
374-
375- Notes
376- -----
377- See https://jinja.palletsprojects.com/en/3.0.x/api/#jinja2.Environment
378- """
379- jinja_env .globals ["project_name" ] = project
380-
381-
382- autoapi_prepare_jinja_env = prepare_jinja_env
383357nitpick_ignore_regex = [
384358 # Ignore typing
385359 (r"py:.*" , r"optional" ),
0 commit comments