From f37f02561b7611129fa963983518fa82d34812ff Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 20 Mar 2026 16:27:54 +0100 Subject: [PATCH 1/6] feat: update the pyproject --- doc/source/conf.py | 7 ++++++- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 2665ac0d4b..6d51e0afe1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -242,7 +242,12 @@ "changelog_file_name": "changelog.rst", "sidebar_pages": ["changelog", "index"], }, - "ansys_sphinx_theme_autoapi": {"project": project}, + "ansys_sphinx_theme_autoapi": { + "project": project, + "examples_dirs": [ + "../../examples/", + ], + }, } diff --git a/pyproject.toml b/pyproject.toml index f6b778d59d..e25dc208bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ tests = [ doc = [ "sphinx>=8.2.3,<9", - "ansys-sphinx-theme[autoapi,changelog]>=1.7.0,<2", + "ansys-sphinx-theme[autoapi,changelog]@git+https://github.com/ansys/ansys-sphinx-theme.git@feat/minigallaery", "imageio-ffmpeg>=0.6.0,<1", "imageio>=2.37.2,<3", "jupyter_sphinx>=0.5.3,<1", From 289d62ab863a59b1e8ba05b6348290a5df308bdc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:28:48 +0000 Subject: [PATCH 2/6] chore: auto fixes from pre-commit hooks --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6d51e0afe1..5e5e3e32d8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -247,7 +247,7 @@ "examples_dirs": [ "../../examples/", ], - }, + }, } From a71afebb319fcdd63a519065338e0e27602bc0c9 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:29:48 +0000 Subject: [PATCH 3/6] chore: adding changelog file 1553.documentation.md [dependabot-skip] --- doc/changelog.d/1553.documentation.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/1553.documentation.md diff --git a/doc/changelog.d/1553.documentation.md b/doc/changelog.d/1553.documentation.md new file mode 100644 index 0000000000..b6d0a76066 --- /dev/null +++ b/doc/changelog.d/1553.documentation.md @@ -0,0 +1 @@ +Test gallery examples From 3a3a367927658e00ac76ca61e193ca3c31ab7bb9 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 31 Mar 2026 10:23:37 +0200 Subject: [PATCH 4/6] fix: additional examples --- .../ansys_mechanical_core_examples.json | 35 +++++++++++++++++++ doc/source/conf.py | 8 +++++ 2 files changed, 43 insertions(+) create mode 100644 doc/source/_static/ansys_mechanical_core_examples.json diff --git a/doc/source/_static/ansys_mechanical_core_examples.json b/doc/source/_static/ansys_mechanical_core_examples.json new file mode 100644 index 0000000000..6d5f25ff51 --- /dev/null +++ b/doc/source/_static/ansys_mechanical_core_examples.json @@ -0,0 +1,35 @@ +{ + "00_basic/example_01_simple_structural_solve.py": [ + "ansys.mechanical.core.embedding.messages.MessageManager.remove", + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "00_basic/example_02_capture_images.py": [ + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "00_basic/example_03_show_object_properties.py": [ + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "01_tips_n_tricks/example_01_run_python_script_output.py": [], + "01_tips_n_tricks/example_02_run_python_script_scope.py": [], + "basic/example_06_bolt_pretension.py": [ + "ansys.mechanical.core.embedding.messages.MessageManager.remove", + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "basic/example_08_lsdyna_taylor_bar.py": [ + "ansys.mechanical.core.embedding.app.App.open", + "ansys.mechanical.core.embedding.app.App.plot", + "ansys.mechanical.core.embedding.messages.MessageManager.remove", + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "basic/example_09_tracemapping.py": [ + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "technology_showcase/example_05_td_026.py": [ + "ansys.mechanical.core.embedding.messages.MessageManager.remove", + "ansys.mechanical.core.mechanical.Mechanical.name" + ], + "technology_showcase/example_07_td_043.py": [ + "ansys.mechanical.core.embedding.messages.MessageManager.remove", + "ansys.mechanical.core.mechanical.Mechanical.name" + ] +} \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index 5e5e3e32d8..198ec3695e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -247,6 +247,14 @@ "examples_dirs": [ "../../examples/", ], + "examples_json": [ + { + "file": "_static/ansys_mechanical_core_examples.json", + "base_url": ( + "https://examples.mechanical.docs.pyansys.com/examples/" + ), + "fqn_prefixes": ["ansys.mechanical.core"], + },] }, } From 7fe8fb17930a4883d6b9ce833e79e59638c1d3ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 08:23:59 +0000 Subject: [PATCH 5/6] chore: auto fixes from pre-commit hooks --- doc/source/conf.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 198ec3695e..e35f299576 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -247,14 +247,13 @@ "examples_dirs": [ "../../examples/", ], - "examples_json": [ + "examples_json": [ { "file": "_static/ansys_mechanical_core_examples.json", - "base_url": ( - "https://examples.mechanical.docs.pyansys.com/examples/" - ), + "base_url": ("https://examples.mechanical.docs.pyansys.com/examples/"), "fqn_prefixes": ["ansys.mechanical.core"], - },] + }, + ], }, } From ab104f90ed840a5e7682ee4f679a30aff8a1c759 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 31 Mar 2026 16:19:29 +0200 Subject: [PATCH 6/6] fix: external examples --- .../_static/ansys-gallery/ansys-favicon.png | Bin 0 -> 327 bytes doc/source/conf.py | 7 ++++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 doc/source/_static/ansys-gallery/ansys-favicon.png diff --git a/doc/source/_static/ansys-gallery/ansys-favicon.png b/doc/source/_static/ansys-gallery/ansys-favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..cfb2e5356aa2e9d95f0481441c680068b0b279ed GIT binary patch literal 327 zcmV-N0l5B&P)i>4>S1TlKZ7eYrFro3o>^ONi85tND7VrJm+SX}nYfC^wvO70~vHPZ! zt*vcZS{gnL>M|_WT5Jpq3@2{Y(I2afh*xA|R z;^MG*mVtqVnc>AU$^YA>ziyD?=)&2kf|NsC0uU)%_U4y?R$N%lp|F=ueD-?u? zoIZUTq6gXQ2q(e4J8#!l2xHEiIS>Y>*BK-Png48+{=Z%N<{WXjARiy!w{PG6|NsBv z#}ByIp*F<3a4|D6FfcI8+xZQy;nSy2Yu2p6?)95<#Q$%X{=G$7LXa6*+}_@vfY%2B Z000k|Vk=IHQxyOJ002ovPDHLkV1l+an5h5& literal 0 HcmV?d00001 diff --git a/doc/source/conf.py b/doc/source/conf.py index 198ec3695e..5c11e7a52b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -247,14 +247,15 @@ "examples_dirs": [ "../../examples/", ], - "examples_json": [ + "examples_json": [ { "file": "_static/ansys_mechanical_core_examples.json", "base_url": ( "https://examples.mechanical.docs.pyansys.com/examples/" ), - "fqn_prefixes": ["ansys.mechanical.core"], - },] + "fqn_prefixes": ["ansys"], + } + ], }, }