Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: Minor changes #885

Merged
merged 14 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.. image:: https://raw.githubusercontent.com/ansys/pymechanical/main/doc/source/_static/logo/pymechanical-logo-light.png
.. image:: https://raw.githubusercontent.com/ansys/pymechanical/main/doc/source/_static/logo/pymechanical-logo.png
:alt: PyMechanical logo
:width: 580px


|pyansys| |pypi| |python| |GH-CI| |codecov| |MIT| |black|
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/885.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Minor changes
Binary file added doc/source/_static/logo/pymechanical-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions doc/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends "!layout.html" %}

{% block htmltitle %}

{% if meta is mapping %}
{% if 'thispagetitle' in meta %}
<title>{{ meta.get("thispagetitle") }}</title>
{% else %}
{{ super() }}
{% endif %}
{% else %}
{{ super() }}
{% endif %}

{% endblock %}
2 changes: 1 addition & 1 deletion doc/source/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protocol.

Applications that conform to REST are said to provide RESTful APIs. For a more
detailed description, see `What is a REST API
<https://www.redhat.com/en/topics/api/what-is-a-rest-api>` on the *Red Hat
<https://www.redhat.com/en/topics/api/what-is-a-rest-api>`_ on the *Red Hat
Technology Topics* page.

Remote method invocation
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"show_breadcrumbs": True,
"collapse_navigation": True,
"use_edit_page_button": True,
"header_links_before_dropdown": 5, # number of links before the dropdown menu
"header_links_before_dropdown": 7, # number of links before the dropdown menu
"additional_breadcrumbs": [
("PyAnsys", "https://docs.pyansys.com/"),
],
Expand Down
65 changes: 40 additions & 25 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,52 @@ Clone the repository and install project dependencies
To clone and install the latest PyMechanical release in development mode, run
these commands:

Clone the repository and create a virtual environment :
klmcadams marked this conversation as resolved.
Show resolved Hide resolved

.. code::

# Clone the repository
git clone https://github.com/ansys/pymechanical
cd pymechanical
# Clone the repository
git clone https://github.com/ansys/pymechanical
cd pymechanical

# Create a virtual environment
python -m venv .venv

Activate the virtual environment:

.. tab-set::

.. tab-item:: Windows

# Create a virtual environment
python -m venv .venv
.. code::

# Activate the virtual environment depending on the operating system
# Windows
.venv\Scripts\activate.bat
# Activate the virtual environment
.venv\Scripts\activate.bat

# PowerShell
.venv\Scripts\Activate.ps1
.. tab-item:: PowerShell

# Linux/UNIX
source .venv/bin/activate
.. code::

# Install build system tools
python -m pip install --upgrade pip tox flit twine
# Activate the virtual environment
.venv\Scripts\Activate.ps1

# Install the project in editable mode using one of the following commands:
# Install the project dependencies only
python -m pip install -e .
.. tab-item:: Linux/UNIX

.. code::

# Activate the virtual environment
source .venv/bin/activate

Install the project, documentation, and test dependencies:

.. code::

# Install the project and test dependencies
python -m pip install -e .[tests]
# Install build system tools
python -m pip install --upgrade pip tox flit twine

# Install the project and documentation dependencies
python -m pip install -e .[doc]
# Install the project, documentation, and test dependencies in editable mode
python -m pip install -e .[doc,tests]

# Install the project, test, and documentation dependencies
python -m pip install -e .[tests,doc]

Test PyMechanical
-----------------
Expand Down Expand Up @@ -212,8 +224,11 @@ Use the `PyMechanical Issues <https://github.com/ansys/pymechanical/issues>`_
page to submit questions, report bugs, and request new features. When possible,
use these templates:

* `Bug report <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=bug&projects=&template=bug.yml&title=Bug+located+in+...>`_
* `Feature request <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=enhancement&projects=&template=feature.yml&title=Add+...>`_
* `File a bug report <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=bug&projects=&template=bug.yml&title=Bug+located+in+...>`_
* `File a documentation issue <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=documentation&projects=&template=documentation.yml&title=Modify+...>`_
* `Request a feature <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=enhancement&projects=&template=feature.yml&title=Add+...>`_
* `Add an example <https://github.com/ansys/pymechanical/issues/new?assignees=&labels=example&projects=&template=examples.yml&title=Example+proposal%3A+...>`_
* `Post all other issues <https://github.com/ansys/pymechanical/issues/new>`_

If your issue does not fit into one of these template categories, create your own issue.

Expand Down
20 changes: 9 additions & 11 deletions doc/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ interface to drive the software that facilitates the use of

.. grid:: 1 2 2 2

.. grid-item-card:: Background
:padding: 2 2 2 2
:link: ../architecture
:link-type: doc
:text-align: left

Information on the application architecture of Mechanical and why there are two Python interfaces.

.. grid-item-card:: Installation guide
:padding: 2 2 2 2
:link: installation
Expand Down Expand Up @@ -51,16 +43,22 @@ interface to drive the software that facilitates the use of
:link-type: doc
:text-align: left

Using PyMechanical with Windows Subsystem for Linux.
Installing PyMechanical on Linux via WSL.


Background
----------

PyMechanical contains two interfaces: a remote session and an embedded instance.
For information on the application architecture of Mechanical and why there are
two Python interfaces, see :ref:`ref_architecture`.

.. toctree::
:hidden:
:maxdepth: 2

../architecture
installation
running_mechanical
docker
wsl
wsl
../architecture
10 changes: 7 additions & 3 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@

:thispagetitle: PyMechanical


.. image:: /_static/logo/pymechanical-logo-light.png
:class: only-light
:alt: PyMechanical Logo
:alt: PyMechanical Logo Light
:width: 580px
:align: center

.. image:: /_static/logo/pymechanical-logo-dark.png
:class: only-dark
:alt: PyMechanical
:alt: PyMechanical Logo Dark
:width: 580px
:align: center

Expand Down Expand Up @@ -101,6 +104,7 @@ Python API to interact with `Ansys Mechanical`_ (FEA software for structural eng

:bdg-primary-line:`Test` :bdg-primary-line:`Documentation` :bdg-primary-line:`Issues`


.. toctree::
:hidden:
:maxdepth: 3
Expand All @@ -111,7 +115,7 @@ Python API to interact with `Ansys Mechanical`_ (FEA software for structural eng
user_guide_embedding/index
user_guide_scripting/index
api/index
contributing
kil/index
faq
contributing
changelog
1 change: 1 addition & 0 deletions doc/source/user_guide_embedding/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ an instance of Mechanical in Python.
:maxdepth: 1
:hidden:

self
configuration
globals
logging
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide_scripting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This section provides an overview of Mechanical scripting.
:maxdepth: 1
:hidden:

self
threading

Overview
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide_session/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ to a remote Mechanical session.
:maxdepth: 1
:hidden:

self
server-launcher
mechanical
pool
Expand Down
6 changes: 4 additions & 2 deletions doc/styles/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*
!vocabularies
!vocabularies/**
!config
!config/vocabularies
!config/vocabularies/ANSYS
!config/vocabularies/ANSYS/**
!.gitignore
3 changes: 2 additions & 1 deletion doc/styles/config/vocabularies/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ ACT
globaly
ans
spaceclaim
github
github
thispagetitle
Loading