diff --git a/doc/.vale.ini b/doc/.vale.ini index 7ce9bda0..6b5d5910 100644 --- a/doc/.vale.ini +++ b/doc/.vale.ini @@ -5,7 +5,7 @@ StylesPath = "styles" # The options are `suggestion`, `warning`, or `error` (defaults to “warning”). -MinAlertLevel = error +MinAlertLevel = warning # By default, `code` and `tt` are ignored. IgnoredScopes = code, tt @@ -26,3 +26,8 @@ Vocab = ANSYS # Apply the following styles BasedOnStyles = Vale, Google + +TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)|(.. (code|jupyter-execute)::.*\n| .*) + +# Removing Google-specific rule - Not applicable under some circumstances +Google.Colons = NO diff --git a/doc/source/common_jupyter_execute.py b/doc/source/common_jupyter_execute.py index d826c612..be849caa 100644 --- a/doc/source/common_jupyter_execute.py +++ b/doc/source/common_jupyter_execute.py @@ -25,6 +25,6 @@ pyvista.global_theme.show_scalar_bar = True pyvista.global_theme.return_cpos = False -pyvista.set_jupyter_backend("panel") +pyvista.set_jupyter_backend("trame") mytheme = pyvista.global_theme diff --git a/doc/source/contributing/write_examples.rst b/doc/source/contributing/write_examples.rst index f2a28261..1c8f3115 100644 --- a/doc/source/contributing/write_examples.rst +++ b/doc/source/contributing/write_examples.rst @@ -38,5 +38,5 @@ The more visual your example is, the better. Python facilitates the creation of sophisticate graphics and plots: take advantage of that. -Packages like `matplotlib `_, `pandas `_ -or `pyvista `_ can help you create nice graphics, tables, or plots . +Packages like `Matplotlib `_, `Pandas `_ +or `PyVista `_ can help you create nice graphics, tables, or plots . diff --git a/doc/source/technology_showcase_examples/techdemo-1/ex_01-tecbrakesqueal.rst b/doc/source/technology_showcase_examples/techdemo-1/ex_01-tecbrakesqueal.rst index 70e8c692..854ab3f9 100644 --- a/doc/source/technology_showcase_examples/techdemo-1/ex_01-tecbrakesqueal.rst +++ b/doc/source/technology_showcase_examples/techdemo-1/ex_01-tecbrakesqueal.rst @@ -185,7 +185,8 @@ Start this example by launching MAPDL and loading the model. pyvista.set_plot_theme('document') from ansys.mapdl.core import launch_mapdl, Mapdl - from ansys.mapdl.core.examples import download_tech_demo_data, ansys_colormap + from ansys.mapdl.core.examples.downloads import download_tech_demo_data + from ansys.mapdl.core.examples.examples import ansys_colormap cdb_path = download_tech_demo_data("td-1", "disc_pad_model.cdb") @@ -217,7 +218,7 @@ Start this example by launching MAPDL and loading the model. :hide-code: from ansys.mapdl.core import examples - from ansys.mapdl.core.examples import download_vtk_rotor, download_tech_demo_data + from ansys.mapdl.core.examples.downloads import download_vtk_rotor, download_tech_demo_data rotor = pyvista.read(download_vtk_rotor()) rotor.plot(color='w', show_edges=True) diff --git a/doc/source/technology_showcase_examples/techdemo-20/ex_20-tecPCB.rst b/doc/source/technology_showcase_examples/techdemo-20/ex_20-tecPCB.rst index 87af9c7f..248a7a9c 100644 --- a/doc/source/technology_showcase_examples/techdemo-20/ex_20-tecPCB.rst +++ b/doc/source/technology_showcase_examples/techdemo-20/ex_20-tecPCB.rst @@ -52,7 +52,7 @@ between the IC packages and the circuit board. import _.pyplot as plt from ansys.mapdl.core import launch_mapdl - from ansys.mapdl.core.examples import download_tech_demo_data + from ansys.mapdl.core.examples.downloads import download_tech_demo_data # start MAPDL as a service mapdl = launch_mapdl() diff --git a/doc/source/technology_showcase_examples/techdemo-21/ex_21-tecbuckling.rst b/doc/source/technology_showcase_examples/techdemo-21/ex_21-tecbuckling.rst index 64747a44..5b015c38 100644 --- a/doc/source/technology_showcase_examples/techdemo-21/ex_21-tecbuckling.rst +++ b/doc/source/technology_showcase_examples/techdemo-21/ex_21-tecbuckling.rst @@ -47,7 +47,7 @@ Starting MAPDL as a service and importing an external model from ansys.mapdl.core import launch_mapdl - from ansys.mapdl.core.examples import download_tech_demo_data + from ansys.mapdl.core.examples.downloads import download_tech_demo_data # define geometric parameters bs = 95.3 # Ring spacing (mm) diff --git a/doc/source/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst b/doc/source/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst index 8bfba028..c38c014e 100644 --- a/doc/source/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst +++ b/doc/source/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst @@ -125,7 +125,7 @@ cylindrical shape tool, as shown in the following figure: :hide-code: from ansys.mapdl.core import examples - from ansys.mapdl.core.examples import download_vtk_rotor, download_tech_demo_data + from ansys.mapdl.core.examples.downloads import download_vtk_rotor, download_tech_demo_data cdbfile = download_tech_demo_data("td-28", "fsw.cdb") # Generating geometry, just for plotting purposes. diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/Vocab/ANSYS/accept.txt index 6903ccca..473be627 100644 --- a/doc/styles/Vocab/ANSYS/accept.txt +++ b/doc/styles/Vocab/ANSYS/accept.txt @@ -54,6 +54,7 @@ Prasanna pres Prestressed prestressed +PyVista Rao ROTY Schroth diff --git a/examples/tech-demos/21-example-technology-showcase-buckling.py b/examples/tech-demos/21-example-technology-showcase-buckling.py index 337426f7..f6c923a5 100644 --- a/examples/tech-demos/21-example-technology-showcase-buckling.py +++ b/examples/tech-demos/21-example-technology-showcase-buckling.py @@ -51,7 +51,7 @@ # from ansys.mapdl.core import launch_mapdl -from ansys.mapdl.core.examples import download_tech_demo_data +from ansys.mapdl.core.examples.downloads import download_tech_demo_data # define geometric parameters bs = 95.3 # Ring spacing (mm) diff --git a/requirements/requirements_doc.txt b/requirements/requirements_doc.txt index 3629b244..9ac1379c 100644 --- a/requirements/requirements_doc.txt +++ b/requirements/requirements_doc.txt @@ -5,7 +5,7 @@ nest-asyncio==1.5.7 pandas==2.0.3 plotly==5.16.1 pythreejs==2.4.2 -pyvista==0.42.3 +pyvista[jupyter]==0.42.3 vtk==9.2.6 # Documentation dependencies @@ -19,6 +19,6 @@ sphinxemoji==0.2.0 sphinx-gallery==0.14.0 sphinx-autobuild==2021.3.14 sphinx-autodoc-typehints==1.24.0 -sphinx-notfound-page==0.8.3 +sphinx-notfound-page==1.0.0 panel==1.2.1 pypandoc==1.11