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: Add PyAEDT cheat sheet #5396

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
sphinxopts: '-j auto --color -w build_errors.txt'
check-links: false
needs-quarto: true

smoke-tests:
name: Build wheelhouse and smoke tests
Expand Down
4 changes: 4 additions & 0 deletions doc/source/cheatsheet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!cheat_sheet.qmd
!.gitignore
/.quarto/
56 changes: 56 additions & 0 deletions doc/source/cheatsheet/cheat_sheet.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: PyAEDT cheat sheet
format: cheat_sheet-pdf
params:
version: main
footer: PyAEDT
footerlinks:
- urls: 'https://aedt.docs.pyansys.com/version/stable/'
text: Documentation
- urls: 'https://aedt.docs.pyansys.com/version/stable/Getting_started/index.html'
text: Getting started
- urls: 'https://examples.aedt.docs.pyansys.com/'
text: Examples
- urls: 'https://aedt.docs.pyansys.com/version/stable/User_guide/index.html'
text: User guide
- urls: 'https://aedt.docs.pyansys.com/version/stable/API/index.html'
text: API reference
execute:
# output: false
eval: false

latex-clean: true
jupyter:
jupytext:
text_representation:
extension: .qmd
format_name: quarto
format_version: '1.0'
jupytext_version: 1.16.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---

# Launch PyAEDT

## Launch an HFSS instance locally
```{python}
#| eval: false
from ansys.aedt.core import Hfss
hfss = Hfss(
version='2024.2',
new_desktop=True,
close_on_exit=True,
non_graphical=False,
project="project_name",
design="design_name"
)
```

## Exit your local instance:
```{python}
#| eval: false
hfss.release_desktop()
```
4 changes: 4 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ def setup(app):
"limite": 10,
"ignoreLocation": True,
},
"cheatsheet": {
"file": "cheatsheet/cheat_sheet.qmd",
"title": "PyAEDT cheat sheet",
},
}

# # Add button to download PDF
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ dotnet = [
]
doc = [
"ansys-sphinx-theme>=1.0.0,<1.3",
"jupyter",
"numpydoc>=1.5.0,<1.9",
"recommonmark",
"Sphinx>=7.1.0,<8.2",
Expand Down
Loading