Skip to content

Commit a06ccc6

Browse files
authored
Merge pull request #449 from InsightSoftwareConsortium/rebase/add-link-checker-workflow
ENH: Add link checker GHA workflow file
2 parents 4a95585 + 999fd59 commit a06ccc6

5 files changed

Lines changed: 38 additions & 2 deletions

File tree

.github/workflows/linkcheck.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check links
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
linkcheck:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Check links
16+
id: lychee
17+
uses: lycheeverse/lychee-action@v2
18+
with:
19+
args: --config .lychee.toml .
20+
fail: true

.lychee.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Exclude patterns for links that are expected to fail in CI:
2+
# - Jinja2/Liquid template expressions in filenames
3+
# - insight-journal.org: historical journal now offline
4+
# - gnuplot.info: site exists but has TLS issues intermittently
5+
# Accept 429 (rate limit) and 502 (transient gateway) as non-errors
6+
accept = ["200", "429", "502"]
7+
8+
exclude = [
9+
"%7B%7B", # URL-encoded {{ in Jinja template file paths
10+
"insight-journal.org", # Historical journal, offline
11+
"www.gnuplot.info", # TLS certificate issues
12+
"cmake-w3-externaldata-upload.on.fleek.co", # Web3 upload service, returns 403
13+
"npmjs.com/package/@web3-storage", # w3cli package, returns 403
14+
"itk.org/Doxygen", # Dead URL, use docs.itk.org instead
15+
]

CMake/CTestCustom.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
4444
"which will suppress this warning"
4545
"WARNING: Cache entry deserialization failed, entry ignored"
4646
"LabelGeometryImageFilter.*deprecated"
47+
"WARNING: Duplicate C\+\+ declaration"
4748
"note: declared here"
4849
"RemovedInSphinx[0-9]+Warning"
4950
"ipo: warning #11053"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ if(BUILD_DOCUMENTATION)
306306
include(${CMAKE_SOURCE_DIR}/CMake/ITKDoxygen.cmake)
307307
endif()
308308
else()
309-
set(ITKDoxygen_LINK_ADDRESS "https://itk.org/Doxygen/html")
309+
set(ITKDoxygen_LINK_ADDRESS "https://docs.itk.org/projects/doxygen/en/stable")
310310
endif()
311311

312312
add_subdirectory(Formatting)

Documentation/Build/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ VV
242242
.. _ImageViewer: https://github.com/KitwareMedical/ImageViewer
243243
.. _ITKApps: https://github.com/InsightSoftwareConsortium/ITKApps
244244
.. _ITK-SNAP: http://www.itksnap.org/pmwiki/pmwiki.php
245-
.. _MITK: https://www.mitk.org/wiki/MITK
245+
.. _MITK: https://www.mitk.org/
246246
.. _Paraview: https://www.paraview.org/
247247
.. _Qt: https://www.qt.io/developers/
248248
.. _VTK: https://vtk.org/

0 commit comments

Comments
 (0)