Skip to content

Commit c95bb99

Browse files
authored
fix: remedy broken api documentation references (#2006)
* fix: add init file to generate api for helpers * fix: broken references corrected * fix: add nitpick option
1 parent 5db303f commit c95bb99

File tree

7 files changed

+40
-15
lines changed

7 files changed

+40
-15
lines changed

doc/make.bat

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if "%SPHINXBUILD%" == "" (
99
)
1010
set SOURCEDIR=source
1111
set BUILDDIR=build
12+
set SPHINXOPTS=-n
1213

1314
if "%1" == "" goto help
1415
if "%1" == "clean" goto clean

doc/source/user_guide/custom_operators.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,5 @@ Once the plugin is loaded, you can instantiate the custom operator:
249249
250250
References
251251
----------
252-
For more information, see :ref:`ref_custom_operator` in the **API reference**
252+
For more information, see :py:mod:`Custom Operator Base <ansys.dpf.core.custom_operator>` in the **API reference**
253253
and :ref:`python_operators` in **Examples**.

doc/source/user_guide/fields_container.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,5 +574,5 @@ For comprehensive information on chaining operators, see :ref:`ref_user_guide_op
574574

575575
API reference
576576
-------------
577-
For more information, see :ref:`ref_fields_container` and
578-
:ref:`ref_field` in the **API reference**.
577+
For more information, see :py:mod:`FieldsContainer <ansys.dpf.core.fields_container>` and
578+
:py:mod:`Field <ansys.dpf.core.field>` in the **API reference**.

doc/source/user_guide/model.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ To understand what is available in the result file, you can print the model
6363
6464
For a comprehensive model example, see :ref:`ref_basic_example`.
6565

66-
For a description of the ``Model`` object, see :ref:`ref_model`.
66+
For a description of the ``Model`` object, see :py:mod:`Model <ansys.dpf.core.model>`.
6767

6868

6969
Model metadata
@@ -125,7 +125,7 @@ This example shows how you get time sets:
125125
[1.]
126126
127127
128-
For a description of the ``Metadata`` object, see :ref:`ref_model`.
128+
For a description of the ``Metadata`` object, see :py:mod:`Model <ansys.dpf.core.model>`.
129129

130130
Model results
131131
-------------
@@ -176,11 +176,11 @@ the mesh scoping:
176176
177177
For an example using the ``Result`` object, see :ref:`ref_transient_easy_time_scoping`.
178178

179-
For a description of the ``Model`` object, see :ref:`ref_results`.
179+
For a description of the ``Model`` object, see :py:mod:`Model <ansys.dpf.core.model>`.
180180

181181

182182

183183
API reference
184184
~~~~~~~~~~~~~
185185

186-
For more information, see :ref:`ref_model` or :ref:`ref_results`.
186+
For more information, see :py:mod:`Model <ansys.dpf.core.model>` or :py:mod:`Results <ansys.dpf.core.results>`.

doc/source/user_guide/operators.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ which is progressively enhanced, see :ref:`ref_dpf_operators_reference`.
5959

6060
Create operators
6161
~~~~~~~~~~~~~~~~
62-
Each operator is of type :ref:`ref_operator`. You can create an instance
62+
Each operator is of type :py:mod:`Operator <ansys.dpf.core.dpf_operator>`. You can create an instance
6363
in Python with any of the derived classes available in the
64-
:ref:`ansys.dpf.core.operators package` or directly with the :ref:`ref_operator`
64+
:py:mod:`ansys.dpf.core.operators` package or directly with the :py:mod:`Operator <ansys.dpf.core.dpf_operator>`
6565
class using the internal name string that indicates the operator type.
6666
For more information, see :ref:`ref_dpf_operators_reference`.
6767

@@ -123,8 +123,8 @@ results, you must provide paths for the result files.
123123

124124
You can create data sources in two ways:
125125

126-
- Use the :ref:`ref_model` class.
127-
- Use the :ref:`ref_data_sources` class.
126+
- Use the :py:mod:`Model <ansys.dpf.core.model>` class.
127+
- Use the :py:mod:`Data Sources <ansys.dpf.core.data_sources>` class.
128128

129129

130130
Because several other examples use the ``Model`` class, this example uses the
@@ -154,7 +154,7 @@ This code demonstrates how to connect the data source to the displacement operat
154154
op.inputs.data_sources(data_src)
155155
156156
You can connect other optional inputs to the displacement operator.
157-
The output from printing the operator shows that a ``mesh_scoping`` of type :ref:`ref_scoping`
157+
The output from printing the operator shows that a ``mesh_scoping`` of type :py:mod:`Scoping <ansys.dpf.core.scoping>`
158158
can be connected to work on a spatial subset. A ``time_scoping`` of a list of integers
159159
can also be connected to work on a temporal subset:
160160

@@ -441,5 +441,5 @@ Python client is not on the same machine as the server:
441441
API reference
442442
~~~~~~~~~~~~~
443443
For a list of all operators in DPF, see :ref:`ref_dpf_operators_reference`
444-
or the package :ref:`ansys.dpf.core.operators package`. For more information about the
445-
class itself, see :ref:`ref_operator`.
444+
or the package :py:mod:`ansys.dpf.core.operators`. For more information about the
445+
class itself, see :py:mod:`Operator <ansys.dpf.core.dpf_operator>`.
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2020 - 2025 ANSYS, Inc. and/or its affiliates.
2+
# SPDX-License-Identifier: MIT
3+
#
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
"""Provide helpers relating to streamline computation, argument filtering, and text indenting."""
23+
24+
from .streamlines import *
25+
from .utils import *

src/ansys/dpf/core/model.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
Model.
2525
2626
Module contains the Model class to manage file result models.
27-
2827
"""
2928

3029
from __future__ import annotations

0 commit comments

Comments
 (0)