Skip to content

Commit

Permalink
Merge branch 'main' into feat/pim-dependency-option
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcadams authored Jan 24, 2025
2 parents ffc0855 + 976b288 commit dbe838e
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 67 deletions.
26 changes: 17 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,23 @@ on Windows and Linux for version 2023 R2 and later. Here is an example:
app.update_globals(globals())
project_dir = DataModel.Project.ProjectDirectory
Documentation and issues
------------------------
How to report issues
--------------------

If you encounter any issues or limitations with PyMechanical that hinder your work, please create
an issue or discussion so our team can address them promptly:

* `PyMechanical Issues <https://github.com/ansys/pymechanical/issues>`_: Report bugs and request new features.
* `PyMechanical Discussions <https://github.com/ansys/pymechanical/discussions>`_: Post questions, share ideas, and get community feedback.

For issues pertaining to `Mechanical scripting <https://mechanical.docs.pyansys.com/version/stable/user_guide_scripting/index.html>`_,
please make a post on the `Developer Portal <https://forum.ansys.com/categories/structures>`_.

If you have general questions about PyAnsys or are unsure which repository to place an issue in,
email `[email protected] <[email protected]>`_.

Documentation resources
-----------------------

Documentation for the latest stable release of PyMechanical is hosted at `PyMechanical documentation
<https://mechanical.docs.pyansys.com/>`_.
Expand All @@ -139,13 +154,6 @@ You can also `view <https://cheatsheets.docs.pyansys.com/pymechanical_cheat_shee
PyMechanical cheat sheet. This one-page reference provides syntax rules and commands
for using PyMechanical.

On the `PyMechanical Issues <https://github.com/ansys/pymechanical/issues>`_ page,
you can create issues to report bugs and request new features. On the `PyMechanical Discussions
<https://github.com/ansys/pymechanical/discussions>`_ page or the `Discussions <https://discuss.ansys.com/>`_
page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.

To reach the project support team, email `[email protected] <[email protected]>`_.

Testing and development
-----------------------

Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/1061.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify support guidelines
17 changes: 12 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# necessary when building the sphinx gallery
pymechanical.BUILDING_GALLERY = True

# Whether or not to build the cheatsheet
BUILD_CHEATSHEET = True

# suppress annoying matplotlib bug
warnings.filterwarnings(
"ignore",
Expand Down Expand Up @@ -57,10 +60,12 @@
"sphinx_autodoc_typehints",
"sphinx_copybutton",
"sphinx_design",
"sphinx_gallery.gen_gallery",
"sphinxemoji.sphinxemoji",
]

if pymechanical.BUILDING_GALLERY:
extensions.append("sphinx_gallery.gen_gallery")

# Intersphinx mapping
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
Expand Down Expand Up @@ -207,14 +212,16 @@
"icon": "fa fa-comment fa-fw",
},
],
"cheatsheet": {
"file": "cheatsheet/cheat_sheet.qmd",
"title": "PyMechanical cheat sheet",
},
"ansys_sphinx_theme_autoapi": {"project": project, "templates": "_templates/autoapi"},
"navigation_depth": 10,
}

if BUILD_CHEATSHEET:
html_theme_options["cheatsheet"] = {
"file": "cheatsheet/cheat_sheet.qmd",
"title": "PyMechanical cheat sheet",
}

# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
Expand Down
92 changes: 49 additions & 43 deletions doc/source/kil/index.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
.. _ref_known_issues_and_limitation:

Known issues and limitations
============================

Note the following known issues and limitations. Some features may not be fully compatible across different versions of **Mechanical** and **PyMechanical**.
Ansys recommends that you always use the latest version of both to achieve the best results.

..
This toctree must be a top-level index to get it to show up in
pydata_sphinx_theme.
.. toctree::
:maxdepth: 2
:hidden:


mechanical
pymechanical

.. grid:: 2
:gutter: 2 2 3 4

.. grid-item-card:: :fas:`fa-solid fa-gears` Mechanical
:link: mechanical
:link-type: doc

Known issues and limitations of Standalone Mechanical

.. grid-item-card:: :fab:`fa-brands fa-python` PyMechanical
:link: pymechanical
:link-type: doc

Known issues and limitations of PyMechanical

Support
=======

If you encounter any issues or limitations that hinder your work, please contact our support team immediately.
We are committed to providing timely assistance to ensure your projects run smoothly.

- Mechanical : `Discussion forum <https://discuss.ansys.com/categories/structures>`_
- PyMechanical : Create issue in github or contact `pyansys team <pyansys_support_>`_
.. _ref_known_issues_and_limitation:

Known issues and limitations
============================

Note the following known issues and limitations. Some features may not be fully compatible across different versions of **Mechanical** and **PyMechanical**.
Ansys recommends that you always use the latest version of both to achieve the best results.

..
This toctree must be a top-level index to get it to show up in
pydata_sphinx_theme.
.. toctree::
:maxdepth: 2
:hidden:


mechanical
pymechanical

.. grid:: 2
:gutter: 2 2 3 4

.. grid-item-card:: :fas:`fa-solid fa-gears` Mechanical
:link: mechanical
:link-type: doc

Known issues and limitations of Standalone Mechanical

.. grid-item-card:: :fab:`fa-brands fa-python` PyMechanical
:link: pymechanical
:link-type: doc

Known issues and limitations of PyMechanical

Support
=======

If you encounter any issues or limitations with PyMechanical that hinder your work, please create
an issue or discussion so our team can address them promptly:

Check warning on line 40 in doc/source/kil/index.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] doc/source/kil/index.rst#L40

[Google.We] Try to avoid using first-person plural like 'our'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "doc/source/kil/index.rst", "range": {"start": {"line": 40, "column": 27}}}, "severity": "WARNING"}

* `PyMechanical Issues <https://github.com/ansys/pymechanical/issues>`_: Report bugs and request new features.
* `PyMechanical Discussions <https://github.com/ansys/pymechanical/discussions>`_: Post questions, share ideas, and get community feedback.

For issues pertaining to `Mechanical scripting <https://mechanical.docs.pyansys.com/version/stable/user_guide_scripting/index.html>`_,
please make a post on the `Ansys Developer Forum for Mechanical <https://discuss.ansys.com/categories/structures>`_.

If you have general questions about PyAnsys or are unsure which repository to place an issue in,
email `[email protected] <[email protected]>`_.
22 changes: 12 additions & 10 deletions doc/source/user_guide_scripting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ You could already perform scripting of Mechanical with Python from inside
Mechanical. PyMechanical leverages the same APIs but allows you to run your
automation from outside Mechanical.

.. note::
For comprehensive information on these APIs, refer to the following documentation:

For comprehensive information on these APIs, see the `Scripting in Mechanical Guide`_ in the
Ansys Help portal, the `Mechanical scripting interface APIs`_ in the Developer Portal, or the
`Mechanical API Documentation`_.
PyMechanical documentation:

* `Mechanical API Documentation`_ - Lists Mechanical APIs that can be used with PyMechanical.

Developer portal:

* `Mechanical scripting interface APIs`_ - Contains the same information as the `Mechanical API Documentation`_ but is located on the developer portal.

ACT API Reference Guide:

* `ACT API Reference Guide`_ - Provides descriptions of the objects, methods, and properties for all namespaces.

Recording
---------
Expand Down Expand Up @@ -89,9 +97,3 @@ When running scripts inside of Mechanical, you can access the APIs via these ent

You also have access to several types and namespaces that are included in the scripting scope but are not available
from those entry points.

Additional resources
--------------------

The `ACT API Reference Guide`_
provides descriptions of the objects, methods, and properties for all namespaces.

0 comments on commit dbe838e

Please sign in to comment.