Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 66fe187

Browse files
authored
FEAT: Updates docs with autoapi (#252)
1 parent 206382d commit 66fe187

File tree

8 files changed

+18
-24
lines changed

8 files changed

+18
-24
lines changed

.github/workflows/ci_cd.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
uses: ansys/actions/build-wheelhouse@v8
4141
with:
4242
library-name: ${{ env.PACKAGE_NAME }}
43-
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
4443
operating-system: ${{ matrix.os }}
4544
python-version: ${{ matrix.python-version }}
4645

@@ -139,7 +138,6 @@ jobs:
139138
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
140139
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
141140
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
142-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
143141

144142
upload_docs_release:
145143
name: Upload release documentation
@@ -154,4 +152,3 @@ jobs:
154152
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
155153
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
156154
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
157-
python-version: ${{ env.MAIN_PYTHON_VERSION }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ test-output.xml
4848

4949
.venv
5050
/env
51+
.env
5152
.DS_Store
5253
doc/_build/*/*
53-
54+
doc/source/api/*

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Further information about contributing to ansys-tools-path can be found in
1616

1717
[PyAnsys Developer's Guide]: https://dev.docs.pyansys.com/
1818

19+
## [Unreleased]()
20+
21+
### What's Changed
22+
Update docs with autoapi [#252](https://github.com/ansys/ansys-tools-path/pull/252)
23+
1924
## [v0.7.0]() - 13 November 2024
2025

2126
### What's Changed

doc/source/api.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@
4040
"additional_breadcrumbs": [
4141
("PyAnsys", "https://docs.pyansys.com/"),
4242
],
43+
"ansys_sphinx_theme_autoapi": {
44+
"project": project,
45+
"directory": "src/ansys",
46+
},
4347
}
4448

4549
# Sphinx extensions
4650
extensions = [
51+
"ansys_sphinx_theme.extension.autoapi",
4752
"sphinx.ext.autodoc",
4853
"sphinx.ext.autosummary",
4954
"numpydoc",
@@ -73,7 +78,7 @@
7378
numpydoc_validation_checks = {
7479
"GL06", # Found unknown section
7580
"GL07", # Sections are in the wrong order.
76-
"GL08", # The object does not have a docstring
81+
# "GL08", # The object does not have a docstring
7782
"GL09", # Deprecation warning should precede extended summary
7883
"GL10", # reST directives {directives} must be followed by two colons
7984
"SS01", # No summary found

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:hidden:
99
:maxdepth: 3
1010

11-
api
11+
api/index
1212
contribute
1313

1414

@@ -27,7 +27,7 @@ How to install
2727
How to use
2828
----------
2929

30-
You can use any of the functions available in the :ref:`ref_api`
30+
You can use any of the functions available in the
3131
to identify the path of the local Ansys installation.
3232

3333
For example you can use :func:`find_ansys <ansys.tools.path.find_ansys>`

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tests = ["pytest==8.3.3", "pytest-cov==6.0.0", "pyfakefs==5.7.1"]
3232

3333
doc = [
3434
"Sphinx==8.1.3",
35-
"ansys-sphinx-theme==1.2.2",
35+
"ansys-sphinx-theme[autoapi]==1.2.2",
3636
"numpydoc==1.8.0",
3737
"sphinx-copybutton==0.5.2",
3838
]

src/ansys/tools/path/path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
PRODUCT_TYPE = Literal["mapdl", "mechanical", "dyna"]
4242
SUPPORTED_VERSIONS_TYPE = Dict[int, str]
4343

44-
LINUX_DEFAULT_DIRS = [["/", "usr", "ansys_inc"], ["/", "ansys_inc"], ["/", "install", "ansys_inc"]]
45-
LINUX_DEFAULT_DIRS = [os.path.join(*each) for each in LINUX_DEFAULT_DIRS]
44+
linux_default_dirs = [["/", "usr", "ansys_inc"], ["/", "ansys_inc"], ["/", "install", "ansys_inc"]]
45+
LINUX_DEFAULT_DIRS = [os.path.join(*each) for each in linux_default_dirs]
4646

4747
CONFIG_FILE_NAME = "config.txt"
4848

0 commit comments

Comments
 (0)