-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs[minor]ci[minor]: Add script & CI to check recurring links daily (#…
- Loading branch information
1 parent
4d7f6fa
commit 98cd8f6
Showing
4 changed files
with
331 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check Broken Links | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 13 * * *' | ||
|
||
jobs: | ||
check-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: cd ./docs && yarn install --immutable --mode=skip-build | ||
- name: Check broken links | ||
run: cd ./docs && yarn check-broken-links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Sorry py folks, gotta be js for this one | ||
const { checkBrokenLinks } = require("@langchain/scripts/check_broken_links"); | ||
|
||
checkBrokenLinks("docs", { | ||
timeout: 10000, | ||
whitelist: ["microsoft.com"], | ||
}); |
Oops, something went wrong.