Skip to content

Commit

Permalink
DOC: Fix links to ITK Sphinx examples in class documentation
Browse files Browse the repository at this point in the history
Fix links to ITK Sphinx examples in class documentation.

Avoid using commas for the `ComputeMinMaxVarianceMeanOfImage` example
displayed name so that the ITK Sphinx examples path/link and the
displayed name parts can be parsed correctly.

Fixes:
```
Modules/Core/SpatialObjects/include/itkContourSpatialObject.h:63:
warning: Found unknown command '\sphinxexample'
Modules/Core/SpatialObjects/include/itkContourSpatialObject.h:64:
warning: Found unknown command '\endsphinx'
```

and similar warnings.

Reported for example in:
https://open.cdash.org/viewBuildError.php?type=1&buildid=8167118

Take advantage of the commit to fix a typo in the displayed name of one
of the examples.
  • Loading branch information
jhlegarreta authored and dzenanz committed Sep 23, 2022
1 parent 68979a9 commit 29eff36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkLightObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace itk
* \ingroup ITKCommon
*
* \sphinx
* \sphinx{Core/Common/GetNameOfClass, Get Name Of Class}
* \sphinxexample{Core/Common/GetNameOfClass,Get Name Of Class}
* \endsphinx
*/
class ITKCommon_EXPORT LightObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern ITKSpatialObjects_EXPORT std::ostream &
* \ingroup ITKSpatialObjects
*
* \sphinx
* \sphinxexample{Core/SpatialObjects/{{ContourSpatialObject,Contour Spacial Object}
* \sphinxexample{Core/SpatialObjects/ContourSpatialObject,Contour Spatial Object}
* \endsphinx
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ namespace itk
* \ingroup ITKImageStatistics
*
* \sphinx
* \sphinxexample{Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage,Compute Min, Max, Variance And Mean Of
* Image} \endsphinx
* \sphinxexample{Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage,Compute Min Max Variance And Mean Of Image}
* \endsphinx
*/
template <typename TInputImage>
class ITK_TEMPLATE_EXPORT StatisticsImageFilter : public ImageSink<TInputImage>
Expand Down

0 comments on commit 29eff36

Please sign in to comment.