Skip to content

Commit 9a14768

Browse files
committed
Merge branch 'main' into release/0.5
2 parents 9dbec42 + 4e7c2ea commit 9a14768

18 files changed

+66
-71
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ repos:
6464

6565
# this validates our github workflow files
6666
- repo: https://github.com/python-jsonschema/check-jsonschema
67-
rev: 0.28.3
67+
rev: 0.28.4
6868
hooks:
6969
- id: check-github-workflows
7070

doc/changelog.d/1135.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs: adapt ``ansys_sphinx_theme_autoapi`` extension for ``autoapi``

doc/changelog.d/1194.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chore: update CHANGELOG for v0.5.4

doc/changelog.d/1196.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: adapting ``Arc`` class constructor order to (start, end, center)

doc/changelog.d/1198.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump grpcio from 1.63.0 to 1.64.0 in the grpc-deps group

doc/changelog.d/1199.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump the docs-deps group with 2 updates

doc/changelog.d/1200.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump pytest from 8.2.0 to 8.2.1

doc/changelog.d/1202.miscellaneous.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chore: pre-commit automatic update

doc/changelog.d/1203.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chore: limit requests library version under 2.32

doc/source/conf.py

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
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
164165
extensions = [
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):
239240
master_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
259246
nbsphinx_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
383357
nitpick_ignore_regex = [
384358
# Ignore typing
385359
(r"py:.*", r"optional"),

0 commit comments

Comments
 (0)