Skip to content

Commit

Permalink
Fix vale 2.29.6 (#2475)
Browse files Browse the repository at this point in the history
* Disabling Google heading.
Adding `mapdl` (lowercase) to accepts.
Fixing other warnings.

* fixing vale version to avoid pipeline unexpected breakdowns.

* Undoing changes from main
  • Loading branch information
germa89 authored Nov 3, 2023
1 parent 0e7f3f4 commit 03c9db3
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 25 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
uses: ansys/actions/doc-style@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 2.29.6

smoke-tests:
name: "Build and smoke tests"
Expand Down
3 changes: 2 additions & 1 deletion doc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Vocab = ANSYS
# Apply the following styles
BasedOnStyles = Vale, Google

TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)|(.. code::.*\n| .*)
TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)

# Removing Google-specific rule - Not applicable under some circumstances
Google.Colons = NO
Google.Headings = NO
2 changes: 1 addition & 1 deletion doc/source/api/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Most PyMAPDL tests require a connection to a running instance of
MAPDL, which makes them integration tests. If your test
requires a running MAPDL instance, you can use the PyMAPDL
`mapdl <mapdl_fixture_>`_ method in your function signature.
It will be executed upstream of each test and not within all tests.
It is executed upstream of each test and not within all tests.

.. code:: python
Expand Down
8 changes: 4 additions & 4 deletions doc/source/examples/devportal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ PyMAPDL Developer Portal articles
=================================

In this section, you'll find informative and insightful blog
articles crafted by our expert developers at Ansys and published
articles crafted by the expert developers at Ansys and published
in the `Developer Portal <developer_portal_>`_.
Whether you're a seasoned pro or just getting started with PYMAPDL, our blog
Whether you're a seasoned pro or just getting started with PyMAPDL, the blog
articles cover a wide range of topics, from best practices and tips to in-depth
tutorials and real-world use cases. Our aim is to provide you with a valuable
resource that will help you harness the full potential of PYMAPDL for your
tutorials and real-world use cases. The aim is to provide you with a valuable
resource that can help you harness the full potential of PyMAPDL for your
engineering and simulation needs.

Because the Developer Portal is your hub for all things related to Ansys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ using this approach (non-tested):
run: |
python rotor.py 4 --density 7000
- name: "Postprocess images"
- name: "Postprocessing images"
run: |
COMPOSITE=/usr/bin/composite
mogrify -mattecolor #f1ce80 -frame 10x10 volume.jpg
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/contribution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use these issue templates:
* **🎓 Adding an example**: Proposing a new example for the library
* **💡 New feature**: Enhancements to the code

If your issue does not fit into one of these categories, click on `Open a blank issue <pymapdl_new_blank_issue_>`_.
If your issue does not fit into one of these categories, click in `Open a blank issue <pymapdl_new_blank_issue_>`_.


Viewing PyMAPDL documentation
Expand Down
10 changes: 5 additions & 5 deletions doc/source/getting_started/learning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ Course content



Getting Started with PyMAPDL
Getting started with PyMAPDL
----------------------------

The `Getting Started with PyMAPDL <course_getting_started_pymapdl_>`_ course teaches
The `Getting started with PyMAPDL <course_getting_started_pymapdl_>`_ course teaches
you about PyMAPDL, the Pythonic way to access Ansys MAPDL.

Course content
Expand All @@ -76,10 +76,10 @@ Course content



Intro to Ansys Mechanical APDL Scripting
Intro to Ansys Mechanical APDL scripting
----------------------------------------

The `Intro to Ansys Mechanical APDL Scripting <course_intro_apdl_>`_
The `Intro to Ansys Mechanical APDL scripting <course_intro_apdl_>`_
course teaches you how APDL, the Mechanical solver syntax language, works.

Course content
Expand Down Expand Up @@ -175,4 +175,4 @@ Recommended articles
Feel free to share any educational or learning resources by `opening an issue <pymapdl_issues_>`_
or `starting a discussion <pymapdl_discussions_>`_ on Github.
or `starting a discussion <pymapdl_discussions_>`_ on GitHub.
14 changes: 7 additions & 7 deletions doc/source/user_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ example, if you input an invalid command:
>>> mapdl.run("AL, 1, 2, 3")
apdlRuntimeError:
L, 1, 2, 3
MapdlRuntimeError:
AL, 1, 2, 3
EFINE AREA BY LIST OF LINES
INE LIST = 1 2 3
DEFINE AREA BY LIST OF LINES
LINE LIST = 1 2 3
TRAVERSED IN SAME DIRECTION AS LINE 1)
** ERROR *** CP = 0.338 TIME= 09:45:36
eypoint 1 is referenced by only one line. Improperly connected line
et for AL command.
*** ERROR *** CP = 0.338 TIME= 09:45:36
Keypoint 1 is referenced by only one line. Improperly connected line
set for AL command.
This ``MapdlRuntimeError`` was caught immediately. This means that
you can write your MAPDL scripts in Python, run them interactively, and
Expand Down
4 changes: 2 additions & 2 deletions doc/source/user_guide/krylov.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ using Mechanical APDL:
>>> mapdl = launch_mapdl()
>>> mapdl.prep7()
# Generate the FEA model (mesh, constraints, loads)
# ...
# Generate the FEA model (mesh, constraints, loads)
# ...
>>> mapdl.run("/SOLU")
>>> mapdl.antype("HARMIC") # HARMONIC ANALYSIS
Expand Down
3 changes: 2 additions & 1 deletion doc/source/user_guide/mesh_geometry.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ One of the most important is that you no longer need to call the entities like y
Y Bounds: 0.000e+00, 1.974e+00
Z Bounds: 5.500e-01, 5.500e-01
N Arrays: 4,
...
...
**New API**

Expand Down
10 changes: 8 additions & 2 deletions doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
[Pp]ythonically
[Ss]uperelements
[Vv]on Mises
2D
3-D
3D
aadd
aas
AAS
Expand All @@ -25,6 +27,7 @@ ALIS
AMLs
ans
ANSYS
Ansys Mechanical APDL
APDL Math
APDLMath
APIs
Expand Down Expand Up @@ -60,16 +63,16 @@ extrem
filname
Fortran
FSW
Getting Started with PyMAPDL
GitHub
Gmsh
GPa
GUI
hexahedral
hostname
Imagemagick
ImageMagick
imagin
importlib
Intro to Ansys Mechanical APDL Scripting
ist
Julia
Krylov
Expand All @@ -80,6 +83,7 @@ LDHI
levl
Linux
MacOS
mapdl
MAPDL
mater
MATLAB
Expand All @@ -89,6 +93,7 @@ midside
Mises
mkdir
MSc
Multi-[Ff]ield
multipoint
nce
Newton-Raphson
Expand Down Expand Up @@ -140,6 +145,7 @@ trian
UCnvrg
uncompress
unconverged
unpause
UNSYM
unsymmetric
UPF
Expand Down

0 comments on commit 03c9db3

Please sign in to comment.