Skip to content

Commit 8641d75

Browse files
committed
fix: exclude local files
1 parent 9d78642 commit 8641d75

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/PULL_REQUEST_TEMPLATE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Feel free to remove what is not applicable.
1818

1919
## ALL contributions
2020
- [ ] I previewed my changes locally using e.g. `python3 -m http.server 4000` and confirmed they work correctly.
21-
- [ ] I checked for broken links, e.g. using the link checker GitHub Action workflow, or locally by using ``docker run --init --rm -it --entrypoint '' -v `pwd`:/docs lycheeverse/lychee /bin/bash -c 'cd /docs && chmod +x ./preprocess-lychee.sh && lychee ./ --config=./lychee.toml'``, at least for the files I changed.
21+
- [ ] I checked for broken links, e.g. using the link checker GitHub Action workflow, or locally by using ``docker run --init --rm -it -v `pwd`:/docs lycheeverse/lychee /docs --config=docs/lychee.toml``, at least for the files I changed.
2222
- [ ] My name was added to the `CITATION.cff` file.

.github/workflows/link-checker-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
- name: Check all this file's additions for broken links
3636
run: |
3737
export base_sha=$(git rev-parse ${{ github.sha }}^)
38-
git diff -U0 ${base_sha} ${{ github.event.pull_request.head.sha }} -- ${{ matrix.file }} | grep -v "+++" | grep "^+" | cut -c 2- | ./lychee --exclude nlesc.sharepoint.com --exclude support.posit.co --exclude www.intel.com --exclude reddit.com --exclude jsfiddle.net -
38+
git diff -U0 ${base_sha} ${{ github.event.pull_request.head.sha }} -- ${{ matrix.file }} | grep -v "+++" | grep "^+" | cut -c 2- | ./lychee --config=lychee.toml --exclude nlesc.sharepoint.com --exclude support.posit.co --exclude www.intel.com --exclude reddit.com --exclude jsfiddle.net -

.github/workflows/link-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id: lychee
1717
with:
1818
# note: args has a long default value; when you override it, make sure you don't accidentally forget to include the default options you want! see https://github.com/lycheeverse/lychee-action/blob/master/action.yml
19-
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --accept '100..=103,200..=299, 429' --exclude nlesc.sharepoint.com --exclude support.posit.co --exclude www.intel.com --exclude reddit.com --exclude jsfiddle.net
19+
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --config=lychee.toml --accept '100..=103,200..=299, 429' --exclude nlesc.sharepoint.com --exclude support.posit.co --exclude www.intel.com --exclude reddit.com --exclude jsfiddle.net
2020
env:
2121
# This token is included to avoid github.com requests to error out with status 429 (too many requests). It only works for GitHub requests (also other GitHub REST API calls), not for the rest of the web.
2222
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}

lychee.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ include_mail = false
55
no_progress = true
66
verbose = "info"
77
root_dir = "./"
8-
preprocess = { command = "./preprocess-lychee.sh" }
8+
#preprocess = { command = "./preprocess-lychee.sh" }
9+
scheme = ["https", "http"]

0 commit comments

Comments
 (0)