Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 14 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
pip install --upgrade build
pip install .[doc]

- name: Run server
run: |
cd src/ansys/dyna/core/pre/Server
python kwserver.py > server_output_docs.txt &
sleep 10
cd -

- name: Build the documentation
run: |
xvfb-run make -C doc html
Expand All @@ -60,6 +67,13 @@ jobs:
path: doc/_build/html
retention-days: 7

- name: Upload the server logs
if: always()
uses: actions/upload-artifact@v3
with:
name: server-logs-docs
path: src/ansys/dyna/core/pre/Server/server_output_docs.txt

style:
name: Code style
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pyvista
from ansys_sphinx_theme import pyansys_logo_black, ansys_favicon
from sphinx.builders.latex import LaTeXBuilder
from sphinx_gallery.sorting import FileNameSortKey

from ansys.dyna.core import __version__

Expand Down Expand Up @@ -51,8 +52,7 @@ def get_version_match(semver):
# convert rst to md for ipynb
"pypandoc": True,
# path to your examples scripts
# "examples_dirs": ["../../examples/"],
"examples_dirs": [],
"examples_dirs": ["../../examples/"],
# path where to save gallery generated examples
"gallery_dirs": ["examples"],
# Patter to search for examples files
Expand All @@ -62,11 +62,11 @@ def get_version_match(semver):
# Remove the "Download all examples" button from the top level gallery
"download_all_examples": False,
# Sort gallery examples by file name instead of number of lines (default)
#"within_subsection_order": FileNameSortKey,
"within_subsection_order": FileNameSortKey,
# directory where function granular galleries are stored
"backreferences_dir": None,
# Modules for which function level galleries are created. In
"doc_module": "ansys-mapdl-core",
"doc_module": "ansys-dyna-core",
"image_scrapers": ("pyvista", "matplotlib"),
"thumbnail_size": (350, 350),
# 'first_notebook_cell': ("%matplotlib inline\n"
Expand Down
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ PyDyna documentation 0.0.1
Resources/User_Guide
API/index
Resources/Contributing
examples/index
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion examples/README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.. _ref_examples:

========
Examples
========
These examples show how you can use PyDyna.


Here are a series of examples using LS-DYNA with the ``ansys-dyna-core`` library.
File renamed without changes.
1 change: 1 addition & 0 deletions src/ansys/dyna/core/solver/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from ansys.dyna.core.solver.dynasolver import DynaSolver, NotFound, RunningError, UnexpectedResponse