Skip to content

Commit e56c24a

Browse files
authored
Merge pull request #232 from jhlegarreta/doc/fix-doc-links-usage
DOC: Fix API cross-references in usage document
2 parents f6199eb + 70eddf5 commit e56c24a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@
246246
"matplotlib": ("https://matplotlib.org/stable", None),
247247
"nibabel": ("https://nipy.org/nibabel/", None),
248248
"nipype": ("https://nipype.readthedocs.io/en/latest/", None),
249+
"nireports": ("https://nireports.readthedocs.io/en/latest/", None),
249250
"niworkflows": ("https://www.nipreps.org/niworkflows/", None),
250251
"numpy": ("https://numpy.org/doc/stable/", None),
251252
"python": ("https://docs.python.org/3/", None),

docs/usage.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To utilize *NiFreeze* functionalities within your Python module or script, follo
2929
from nifreeze.estimator import Estimator
3030
3131
2. **Load 4D Data**: Load your 4D data into a dataset object using the
32-
:func:`api/nifreeze.data.load` function.
32+
:func:`~nifreeze.data.load` function.
3333

3434
Use the appropriate parameters for the particular imaging modality (e.g.
3535
dMRI, fMRI, or PET) that you are using.
@@ -56,7 +56,7 @@ To utilize *NiFreeze* functionalities within your Python module or script, follo
5656
5757
5858
3. **Instantiate an NiFreeze Estimator Object**: Create an instance of the
59-
:class:`api/nifreeze.estimator.Estimator` class, which encapsulates tools
59+
:class:`~nifreeze.estimator.Estimator` class, which encapsulates tools
6060
for estimating rigid-body head motion and distortions due to eddy currents.
6161

6262
.. code-block:: python
@@ -79,8 +79,8 @@ To utilize *NiFreeze* functionalities within your Python module or script, follo
7979

8080
4. **Fit the Models to Estimate the Affine Transformation**:
8181

82-
Use the :meth:`api/nifreeze.estimator.Estimator.run` method of the
83-
:class:`api/nifreeze.estimator.Estimator` object to estimate the affine
82+
Use the :meth:`~nifreeze.estimator.Estimator.run` method of the
83+
:class:`~nifreeze.estimator.Estimator` object to estimate the affine
8484
transformation parameters:
8585

8686
.. code-block:: python
@@ -148,9 +148,9 @@ To utilize *NiFreeze* functionalities within your Python module or script, follo
148148

149149
Data results can be visualized using the NiReports_ functions, e.g.:
150150

151-
- Use :func:`api/nireports.reportlets.mosaic.plot_mosaic` to visualize one
151+
- Use :func:`nireports.reportlets.mosaic.plot_mosaic` to visualize one
152152
direction of the dMRI dataset or a frame of an fMRI or PET dataset.
153-
- Employ :func:`api/nireports.reportlets.modality.dwi.plot_gradients` to
153+
- Employ :func:`nireports.reportlets.modality.dwi.plot_gradients` to
154154
visualize diffusion gradients.
155155

156156
Example Usage:

0 commit comments

Comments
 (0)