Skip to content

Commit f73d1aa

Browse files
dipinknairPipKat
andauthored
DOC: Update documentation (#4181)
* documentation fix * Apply suggestions from code review Co-authored-by: Kathy Pippert <[email protected]> * minor correction --------- Co-authored-by: Kathy Pippert <[email protected]>
1 parent aa0e32f commit f73d1aa

File tree

7 files changed

+48
-151
lines changed

7 files changed

+48
-151
lines changed

.pre-commit-config.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
files: |
22
(?x)(
33
^pyaedt/|
4-
_unittest/|
5-
requirements/requirements_docs.txt|
6-
requirements/requirements_test.txt
4+
_unittest/
75
)
86
exclude: |
97
(?x)(
@@ -47,7 +45,6 @@ repos:
4745
- repo: https://github.com/pre-commit/pre-commit-hooks
4846
rev: v4.5.0
4947
hooks:
50-
- id: requirements-txt-fixer
5148
- id: debug-statements
5249
- id: trailing-whitespace
5350

doc/source/Getting_started/Contributing.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ For example::
6868
isort (python)...........................................................Passed
6969
flake8...................................................................Passed
7070
codespell................................................................Passed
71-
fix requirements.txt.....................................................Passed
71+
debug statements (python)................................................Passed
72+
trim trailing whitespace.................................................Passed
73+
Validate GitHub Workflows................................................Passed
7274
blacken-docs.............................................................Passed
7375

7476
Log errors

doc/source/Getting_started/Installation.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,12 @@ Activate virtual environment
128128
129129
conda activate pyaedt_py310
130130
131-
Install required packages.
132-
133-
Download `requirements.txt <https://github.com/ansys/pyaedt/blob/main/requirements/requirements.txt>`_
131+
You can also install PyAEDT from Conda-Forge with this command:
134132

135133
.. code:: bash
136134
137-
pip install -r requirements.txt
135+
conda install -c conda-forge pyaedt
136+
138137
139138
Upgrade PyAEDT to the latest version
140139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/source/Getting_started/index.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Getting started
66
.. grid-item-card:: About PyAnsys and AEDT
77
:link: About
88
:link-type: doc
9-
10-
Learn more about PyAnsys and Ansys Electronics Desktop.
9+
:margin: 2 2 0 0
10+
11+
Learn more about PyAnsys and AEDT.
1112

1213
.. grid-item-card:: Installation
1314
:link: Installation

doc/source/User_guide/index.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,49 +17,49 @@ For additional practical demonstrations, see
1717
:link-type: doc
1818
:margin: 2 2 0 0
1919

20-
This tutorial shows how to launch Electronics Desktop and create a project.
20+
How to launch AEDT and create a project.
2121

2222
.. grid-item-card:: Modeler
2323
:link: modeler
2424
:link-type: doc
2525
:margin: 2 2 0 0
2626

27-
This tutorial shows how to use 2D and 3D Modeler.
27+
How to use 2D and 3D Modeler.
2828

2929
.. grid-item-card:: Mesh
3030
:link: mesh
3131
:link-type: doc
3232
:margin: 2 2 0 0
3333

34-
This tutorial shows how PyAEDT handles mesh operations.
34+
How PyAEDT handles mesh operations.
3535

3636
.. grid-item-card:: Setup
3737
:link: setup
3838
:link-type: doc
3939
:margin: 2 2 0 0
4040

41-
This tutorial shows how to create a setup and run simulations.
41+
How to create a setup and run simulations.
4242

4343
.. grid-item-card:: Variables and Optimetrics
4444
:link: variables
4545
:link-type: doc
4646
:margin: 2 2 0 0
4747

48-
This tutorial shows how to generate parametric models and run optimizations.
48+
How to generate parametric models and run optimizations.
4949

5050
.. grid-item-card:: Load and manage files
5151
:link: files
5252
:link-type: doc
5353
:margin: 2 2 0 0
5454

55-
This tutorial shows how to load and manage input and output files.
55+
How to load and manage input and output files.
5656

5757
.. grid-item-card:: Postprocessing
5858
:link: postprocessing
5959
:link-type: doc
6060
:margin: 2 2 0 0
6161

62-
This tutorial shows how to generate reports, images, and PDF files.
62+
How to generate reports, images, and PDF files.
6363

6464
.. toctree::
6565
:hidden:

doc/source/_static/custom.css

-27
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,6 @@
1313
padding-top: 5em;
1414
}
1515

16-
/* Remove once implemented in ansys-sphinx-theme*/
17-
18-
.sd-card .sd-card-img-top {
19-
height: 100px;
20-
width: 100px;
21-
margin-left: auto;
22-
margin-right: auto;
23-
}
24-
25-
.sd-card .sd-card-header {
26-
border: none;
27-
background-color:white;
28-
color: #150458 !important;
29-
font-size: var(--pst-font-size-h5);
30-
font-weight: bold;
31-
padding: .5rem 0rem 0.5rem 0rem;
32-
text-align: center;
33-
}
34-
35-
.sd-card .sd-card-footer .sd-card-text {
36-
max-width: 220px;
37-
margin-left: auto;
38-
margin-right: auto;
39-
}
40-
.sd-card .sd-card-text {
41-
text-align: center;
42-
}
4316

4417
nav.bd-links ul li.toctree-l1 > a {
4518
font-size: .90rem;

doc/source/index.rst

+31-106
Original file line numberDiff line numberDiff line change
@@ -9,130 +9,55 @@ PyAEDT documentation |version|
99
PyAEDT is a Python library that interacts directly with the Ansys Electronics Desktop (AEDT) API,
1010
enabling straightforward and efficient automation in your workflow.
1111

12-
.. grid:: 2
13-
14-
.. grid-item-card::
15-
:img-top: _static/assets/index_getting_started.png
16-
17-
Getting started
18-
^^^^^^^^^^^^^^^
19-
20-
New to PyAEDT? This section provides the information that you need to get started with PyAEDT.
21-
22-
+++
23-
24-
.. button-link:: Getting_started/index.html
25-
:color: secondary
26-
:expand:
27-
:outline:
28-
:click-parent:
29-
30-
Getting started
31-
32-
.. grid-item-card::
33-
:img-top: _static/assets/index_user_guide.png
34-
35-
User guide
36-
^^^^^^^^^^
37-
38-
This section provides in-depth information on PyAEDT key concepts.
39-
40-
+++
41-
.. button-link:: User_guide/index.html
42-
:color: secondary
43-
:expand:
44-
:outline:
45-
:click-parent:
46-
47-
User guide
48-
49-
5012

5113
.. grid:: 2
5214

53-
.. grid-item-card::
54-
:img-top: _static/assets/index_api.png
55-
56-
AEDT API reference
57-
^^^^^^^^^^^^^^^^^^
15+
.. grid-item-card:: Getting started :fa:`person-running`
16+
:link: Getting_started/index
17+
:link-type: doc
5818

59-
The PyAEDT API reference contains descriptions of the functions and modules included in PyAEDT.
60-
It describes how the methods work and the parameter that can be used.
19+
New to PyAEDT? This section provides the information that you need to get started with PyAEDT.
6120

62-
+++
63-
.. button-link:: API/index.html
64-
:color: secondary
65-
:expand:
66-
:outline:
67-
:click-parent:
21+
.. grid-item-card:: User guide :fa:`book-open-reader`
22+
:link: User_guide/index
23+
:link-type: doc
6824

69-
AEDT API reference
25+
This section provides in-depth information on PyAEDT key concepts.
7026

71-
.. grid-item-card::
72-
:img-top: _static/assets/index_api.png
27+
.. grid:: 2
7328

74-
EDB API reference
75-
^^^^^^^^^^^^^^^^^
29+
.. grid-item-card:: AEDT API reference :fa:`book-bookmark`
30+
:link: API/index
31+
:link-type: doc
7632

77-
The PyAEDT EDB API reference contains descriptions of the functions and modules included in PyAEDT.
78-
It describes how the methods work and the parameter that can be used.
33+
This section contains descriptions of the functions and modules included in PyAEDT.
34+
It describes how the methods work and the parameter that can be used.
7935

80-
+++
81-
.. button-link:: EDBAPI/index.html
82-
:color: secondary
83-
:expand:
84-
:outline:
85-
:click-parent:
36+
.. grid-item-card:: EDB API reference :fa:`book-bookmark`
37+
:link: EDBAPI/index.
38+
:link-type: doc
8639

87-
EDB API reference
40+
Contains descriptions of the functions and modules included in PyEDB.
41+
It describes how the methods work and the parameter that can be used.
8842

8943
.. jinja:: main_toctree
9044

91-
.. grid:: 2
92-
93-
{% if run_examples %}
94-
.. grid-item-card::
95-
:img-top: _static/assets/index_examples.png
96-
97-
Examples
98-
^^^^^^^^
99-
100-
Explore examples that show how to use PyAEDT to
101-
perform different types of simulations.
102-
103-
+++
104-
.. button-link:: examples/index.html
105-
:color: secondary
106-
:expand:
107-
:outline:
108-
:click-parent:
109-
110-
Examples
111-
{% endif %}
112-
113-
.. grid-item-card::
114-
:img-top: _static/assets/index_contribute.png
115-
116-
Contribute
117-
^^^^^^^^^^
118-
Learn how to contribute to the PyAEDT codebase
119-
or documentation.
45+
.. grid:: 2
12046

121-
+++
122-
.. button-link:: Getting_started/Contributing.html
123-
:color: secondary
124-
:expand:
125-
:outline:
126-
:click-parent:
47+
{% if run_examples %}
48+
.. grid-item-card:: Examples :fa:`scroll`
49+
:link: examples/index
50+
:link-type: doc
12751

128-
Contribute
52+
Explore examples that show how to use PyAEDT to perform different types of simulations.
53+
54+
{% endif %}
12955

130-
Indices and tables
131-
==================
132-
* :ref:`genindex`
133-
* :ref:`modindex`
134-
* :ref:`search`
56+
.. grid-item-card:: Contribute :fa:`people-group`
57+
:link: Getting_started/Contributing
58+
:link-type: doc
13559

60+
Learn how to contribute to the PyAEDT codebase or documentation.
13661

13762
.. jinja:: main_toctree
13863

0 commit comments

Comments
 (0)