Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

update docs link checker (#62687)

Jeff Bruemmerc9baddf99f9e
diff --git a/.github/workflows/docs-links.yml b/.github/workflows/docs-links.yml
new file mode 100644
index 00000000000..5202328aa0e
--- /dev/null
+++ b/.github/workflows/docs-links.yml
@@ -0,0 +1,62 @@
+name: Check doc links
+
+on:
+ repository_dispatch:
+ workflow_dispatch:
+ schedule:
+ - cron: "0 0 * * 0" # Weekly on Sundays at midnight UTC
+
+jobs:
+ link-checker:
+ name: Check documentation links
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ issues: write
+ contents: read
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Run link checker
+ id: link-check
+ uses: lycheeverse/lychee-action@v2
+ with:
+ fail: false
+ args: docs --config ./.lychee/config.toml --offline
+ format: markdown
+
+ - name: Create issue for broken links
+ if: steps.link-check.outputs.exit_code != 0
+ uses: peter-evans/create-issue@v5
+ with:
+ title: "Documentation Link Checker Report - $(date +'%Y-%m-%d')"
+ body: |
+ The documentation link checker found broken or problematic links in
+ the docs directory.
+
+ ${{ steps.link-check.outputs.stdout }}
+ labels: "Type:Documentation"
+ assignees: jeff-bruemmer
+
+ - name: Workflow summary
+ if: always()
+ run: |
+ if [ "${{ steps.link-check.outputs.exit_code }}" == "0" ]; then
+ echo "## ✅ Link Check Passed" >> $GITHUB_STEP_SUMMARY
+ echo "All documentation links are working correctly." >> \
+ $GITHUB_STEP_SUMMARY
+ else
+ echo "## ❌ Broken Links Found" >> $GITHUB_STEP_SUMMARY
+ echo "The link checker found broken or problematic links in the" >> \
+ $GITHUB_STEP_SUMMARY
+ echo "documentation." >> $GITHUB_STEP_SUMMARY
+ echo "A GitHub issue has been created to track the problems." >> \
+ $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "**Check the issue for details on which links need to be" >> \
+ $GITHUB_STEP_SUMMARY
+ echo "fixed.**" >> $GITHUB_STEP_SUMMARY
+ fi
diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml
deleted file mode 100644
index 7a16261bf4f..00000000000
--- a/.github/workflows/links.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: Links
-
-on:
- repository_dispatch:
- workflow_dispatch:
- schedule:
- - cron: "0 0 * * 0"
-
-jobs:
- linkChecker:
- runs-on: ubuntu-latest
- permissions:
- issues: write # required for peter-evans/create-issue-from-file
- steps:
- - uses: actions/checkout@v4
-
- - name: Link Checker
- id: lychee
- uses: lycheeverse/lychee-action@v2
- with:
- fail: false
- args: docs --include-fragments --config ./.lychee/config.toml --verbose --no-progress
- format: markdown
-
- - name: Create Issue From File
- if: steps.lychee.outputs.exit_code != 0
- uses: peter-evans/create-issue-from-file@v5
- with:
- title: Link Checker Report
- content-filepath: ./.lychee/out.md
- labels: "Type:Documentation"
- assignees: jeff-bruemmer
diff --git a/.lychee/config.toml b/.lychee/config.toml
index 24510b65208..15b619b67f5 100644
--- a/.lychee/config.toml
+++ b/.lychee/config.toml
@@ -1 +1,5 @@
accept = ["200..=204", "429"]
+exclude_path = ["docs/embedding/sdk"]
+no_progress = true
+include_fragments = true
+verbose = "info"
\ No newline at end of file
diff --git a/.lychee/out.md b/.lychee/out.md
deleted file mode 100644
index e69de29bb2d..00000000000