Skip to content

Commit d0d4de1

Browse files
authored
Merge pull request #71 from nipreps/codex/update-link-checker-configuration-and-workflow
Add link-check config and fix documentation links
2 parents 4ae5bd9 + b076e29 commit d0d4de1

File tree

15 files changed

+47
-26
lines changed

15 files changed

+47
-26
lines changed

.github/workflows/linkcheck.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ jobs:
2828
uses: actions/setup-python@v5
2929
with:
3030
python-version: 3.12
31+
- name: Install MkDocs
32+
run: pip install -r requirements.txt
3133

32-
- uses: tcort/github-action-markdown-link-check@v1
34+
- name: Build site
35+
run: mkdocs build
36+
37+
- name: Check links
38+
uses: tcort/github-action-markdown-link-check@v1
3339
with:
3440
use-quiet-mode: yes
35-
# use-verbose-mode: no
41+
config-file: .markdown-link-check.json
42+
folder-path: site
43+
file-extension: .html

.markdown-link-check.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ignorePatterns": [
3+
{"pattern": "^http://127\\.0\\.0\\.1:8445"},
4+
{"pattern": "^http://192\\.168\\.99\\.100:8445"},
5+
{"pattern": "biorxiv\\.org"},
6+
{"pattern": "doi\\.org"},
7+
{"pattern": "toptal\\.com"},
8+
{"pattern": "nbirn\\.net"},
9+
{"pattern": "^/"}
10+
]
11+
}

docs/apps/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Once the *Docker Engine* arguments are written, the remainder of the
292292
command line follows the interface defined by the specific
293293
*BIDS App* (for instance,
294294
[*fMRIPrep*](https://fmriprep.readthedocs.io/en/latest/usage.html)
295-
or [*MRIQC*](https://mriqc.readthedocs.io/en/latest/running.html#command-line-interface)).
295+
or [*MRIQC*](https://mriqc.readthedocs.io/en/latest/usage.html#a-bids-apps-command-line-interface)).
296296

297297
The first section of a call consists of arguments specific to *Docker*,
298298
which configure the execution of the container:

docs/apps/framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
brain datasets, including MRI.
66
The common naming convention and folder structure allow researchers to easily reuse BIDS datasets, re-apply analysis protocols, and run standardized automatic data preprocessing pipelines (and particularly, BIDS Apps).
77
The [BIDS starter-kit](https://github.com/bids-standard/bids-starter-kit) contains a wide collection of educational resources.
8-
Validity of the structure can be assessed with the online [BIDS-Validator](https://bids-standard.github.io/bidsvalidator/).
8+
Validity of the structure can be assessed with the online [BIDS-Validator](https://bids-standard.github.io/bids-validator/).
99
The tree of a typical, valid (*BIDS-compliant*) dataset is shown below:
1010

1111
```

docs/apps/singularity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $ singularity run --cleanenv fmriprep.simg \
7272

7373
## Handling environment variables
7474

75-
Singularity by default [exposes all environment variables from the host inside the container](https://github.com/singularityware/singularity/issues/445).
75+
Singularity by default [exposes all environment variables from the host inside the container](https://github.com/apptainer/singularity/issues/445).
7676
Because of this, your host libraries (e.g., [NiPype](https://nipype.readthedocs.io) or a Python environment) could be accidentally used instead of the ones inside the
7777
container. To avoid such a situation, we strongly **recommend** using the
7878
`--cleanenv` argument in all scenarios. For example:

docs/assets/ORN-Workshop/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
highlightLines: true,
260260
countIncrementalSlides: false,
261261
highlightSpans: true,
262-
sourceUrl: 'https://raw.githubusercontent.com/nipreps/nipreps.github.io/mkdocs/docs/assets/ORN-Workshop/presentation.md',
262+
sourceUrl: 'presentation.md',
263263
ratio: '16:9'
264264
});
265265
</script>

docs/assets/ORN-Workshop/presentation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class: section-separator
5353
<br />
5454

5555
<p align="center">
56-
<img src="../nipreps-qr.svg" width="70%" />
56+
<object type="text/xml+svg" data="https://raw.githubusercontent.com/nipreps/identity/refs/heads/main/nipreps-general/qr-code.svg" style="width: 70%"></object>
5757
</p>
5858
<br />
5959
<p align="center">
@@ -77,7 +77,7 @@ layout: true
7777
<br />
7878

7979
<p align="center">
80-
<img src="../nipreps-qr.svg" width="70%" />
80+
<object type="text/xml+svg" data="https://raw.githubusercontent.com/nipreps/identity/refs/heads/main/nipreps-general/qr-code.svg" style="width: 70%"></object>
8181
</p>
8282
<br />
8383
<p align="center">
@@ -125,7 +125,7 @@ template: sidebar
125125
## The garden of forking paths
126126

127127
<p align="center">
128-
<img src="assets/narps.png" width="800px" alt="NARPS Paper" />
128+
<img src="../assets/narps.png" width="800px" alt="NARPS Paper" />
129129
</p>
130130

131131
(Botvinik-Nezer et al., 2020)
@@ -139,7 +139,7 @@ Around 50% of teams used fMRIPrep'ed inputs.
139139
### fMRIPrep produces analysis-ready data from diverse data
140140
* minimal requirements ([BIDS-compliant](https://bids-standard.github.io/bids-validator/));
141141
* *agnostic* to downstream steps of the workflow
142-
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/derivatives/05-derivatives/01-introduction.html);
142+
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/stable/derivatives/introduction.html);
143143
* robust against inhomogeneity of data across studies
144144

145145
???
@@ -227,7 +227,7 @@ to fmriprep.org, which is the documentation website.
227227
## Key aspect: credit all direct contributors
228228

229229
<p align="center">
230-
<img src="assets/fmriprep-authors.png" width="700px" alt="fMRIPrep authors" />
230+
<img src="../assets/fmriprep-authors.png" width="700px" alt="fMRIPrep authors" />
231231
</p>
232232

233233
--

docs/assets/bhd2020/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
highlightLines: true,
260260
countIncrementalSlides: false,
261261
highlightSpans: true,
262-
sourceUrl: 'https://raw.githubusercontent.com/nipreps/nipreps.github.io/mkdocs/docs/assets/bhd2020/presentation.md',
262+
sourceUrl: 'presentation.md',
263263
ratio: '16:9'
264264
});
265265
</script>

docs/assets/bhd2020/presentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class: section-separator
5353
<br />
5454

5555
<p align="center">
56-
<img src="../nipreps-qr.svg" width="70%" />
56+
<object type="text/xml+svg" data="https://raw.githubusercontent.com/nipreps/identity/refs/heads/main/nipreps-general/qr-code.svg" style="width: 70%"></object>
5757
</p>
5858
<br />
5959
<p align="center">
@@ -77,7 +77,7 @@ layout: true
7777
<br />
7878

7979
<p align="center">
80-
<img src="../nipreps-qr.svg" width="70%" />
80+
<object type="text/xml+svg" data="https://raw.githubusercontent.com/nipreps/identity/refs/heads/main/nipreps-general/qr-code.svg" style="width: 70%"></object>
8181
</p>
8282
<br />
8383
<p align="center">
@@ -196,7 +196,7 @@ Around 50% of teams used *fMRIPrep*'ed inputs.
196196
### fMRIPrep produces analysis-ready data from diverse data
197197
* minimal requirements ([BIDS-compliant](https://bids-standard.github.io/bids-validator/));
198198
* *agnostic* to downstream steps of the workflow
199-
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/derivatives/05-derivatives/01-introduction.html);
199+
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/stable/derivatives/introduction.html);
200200
* robust against inhomogeneity of data across studies
201201

202202
???

docs/assets/torw2020/presentation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdown-link-check-disable -->
12
name: title
23
layout: true
34
class: center
@@ -103,7 +104,7 @@ template: sidebar
103104
### fMRIPrep produces analysis-ready data from acquired (fMRI) data
104105
* minimal requirements ([BIDS-compliant](https://bids-standard.github.io/bids-validator/));
105106
* *agnostic* to downstream steps of the workflow
106-
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/derivatives/05-derivatives/01-introduction.html);
107+
* produces [BIDS-Derivatives](https://bids-specification.readthedocs.io/en/stable/derivatives/introduction.html);
107108

108109
???
109110

@@ -1200,3 +1201,4 @@ layout: false
12001201

12011202
## Questions?
12021203
]
1204+
<!-- markdown-link-check-enable -->

0 commit comments

Comments
 (0)