From ab614375db557f67e75f1107003fafb3820623bd Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:24:07 +0800 Subject: [PATCH 1/5] add check links workflow Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/check-links.yml | 26 +++++++++++++++++++ .../swin_unetr_btcv_segmentation_3d.ipynb | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-links.yml diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000000..aa18cf74f4 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,26 @@ +name: Check Links + +on: + push: + branches: + - main + pull_request: + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - name: Checkout repository content + uses: actions/checkout@v3 + + - name: Install Rust (required for Lychee) + run: sudo apt update && sudo apt install -y curl build-essential && curl https://sh.rustup.rs -sSf | sh -s -- -y + + - name: Add Rust to PATH + run: source $HOME/.cargo/env + + - name: Install Lychee + run: cargo install lychee + + - name: Run Lychee to check links + run: lychee --verbose --all \ No newline at end of file diff --git a/3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb b/3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb index 4e5990c41d..c3a6c0b415 100644 --- a/3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb +++ b/3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb @@ -319,7 +319,7 @@ "\n", "3. Make a JSON file to define train/val split and other relevant parameters. Place the JSON file at `./data/dataset_0.json`.\n", "\n", - " You can download an example of the JSON file [here](https://drive.google.com/file/d/1qcGh41p-rI3H_sQ0JwOAhNiQSXriQqGi/view?usp=sharing), or, equivalently, use the following `wget` command. If you would like to use this directly, please move it into the `./data` folder." + " You can download an example of the JSON file [here](https://developer.download.nvidia.com/assets/Clara/monai/tutorials/swin_unetr_btcv_dataset_0.json), or, equivalently, use the following `wget` command. If you would like to use this directly, please move it into the `./data` folder." ] }, { From 39e012d61f452321f89d73030be6168efe3e6d01 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:31:37 +0800 Subject: [PATCH 2/5] fix Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/check-links.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index aa18cf74f4..b4c983a910 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -5,22 +5,19 @@ on: branches: - main pull_request: + workflow_dispatch: jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - name: Checkout repository content - uses: actions/checkout@v3 - - - name: Install Rust (required for Lychee) + - name: Checkout repository content + uses: actions/checkout@v3 + - name: Install Rust (required for Lychee) run: sudo apt update && sudo apt install -y curl build-essential && curl https://sh.rustup.rs -sSf | sh -s -- -y - - - name: Add Rust to PATH - run: source $HOME/.cargo/env - - - name: Install Lychee - run: cargo install lychee - - - name: Run Lychee to check links - run: lychee --verbose --all \ No newline at end of file + - name: Add Rust to PATH + run: source $HOME/.cargo/env + - name: Install Lychee + run: cargo install lychee + - name: Run Lychee to check links + run: lychee --verbose --all From e7b3e9540ba8464480836b2300740ce66306f346 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:40:06 +0800 Subject: [PATCH 3/5] add check link Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/check-links.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index b4c983a910..d27b7c38bb 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -11,13 +11,8 @@ jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - name: Checkout repository content - uses: actions/checkout@v3 - - name: Install Rust (required for Lychee) - run: sudo apt update && sudo apt install -y curl build-essential && curl https://sh.rustup.rs -sSf | sh -s -- -y - - name: Add Rust to PATH - run: source $HOME/.cargo/env - - name: Install Lychee - run: cargo install lychee - - name: Run Lychee to check links - run: lychee --verbose --all + - uses: actions/checkout@v4 + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v2 + args: --verbose \ No newline at end of file From bf44125d5aa32bc77270216c23572e9d7421d632 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:43:12 +0800 Subject: [PATCH 4/5] update Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/check-links.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index d27b7c38bb..a5123a65dd 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -15,4 +15,4 @@ jobs: - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v2 - args: --verbose \ No newline at end of file + args: --verbose From 97d529c03ac9a1051f200ce7b373be8635e015e1 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:48:29 +0800 Subject: [PATCH 5/5] update Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/check-links.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index a5123a65dd..c691fdd12e 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -15,4 +15,5 @@ jobs: - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v2 - args: --verbose + with: + args: --verbose