diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 31dfbc4267..ddc9ef1e2d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -47,6 +47,12 @@ jobs: echo "url-count = ${{ steps.sitemap.outputs.url-count }}" echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" + - name: Linkcheck - Lychee + uses: lycheeverse/lychee-action@v2 + with: + args: -c .lychee.toml build/install/docs/mfc/ + fail: false + - name: Publish Documentation if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && ( github.event_name == 'cron' || github.event_name == 'workflow_dispatch' ) run: | diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml deleted file mode 100644 index a7661cce19..0000000000 --- a/.github/workflows/links.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: LinkChecker - -on: push - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - config-file: '.link_config.json' - use-verbose-mode: 'yes' diff --git a/.link_config.json b/.link_config.json deleted file mode 100644 index e2c4790d74..0000000000 --- a/.link_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "examples.md" - } - ], - "replacementPatterns": [ - { - "pattern": "^.attachments", - "replacement": "file://some/conventional/folder/.attachments" - }, - { - "pattern": "^/", - "replacement": "{{BASEURL}}/" - } - ], - "httpHeaders": [ - { - "urls": ["https://example.com"], - "headers": { - "Authorization": "Basic Zm9vOmJhcg==", - "Foo": "Bar" - } - } - ], - "timeout": "20s", - "retryOn429": true, - "retryCount": 5, - "fallbackRetryDelay": "30s", - "aliveStatusCodes": [200, 206, 403] -} - diff --git a/.lychee.toml b/.lychee.toml new file mode 100644 index 0000000000..797c5bef0a --- /dev/null +++ b/.lychee.toml @@ -0,0 +1,17 @@ +# Maximum number of allowed retries before a link is declared dead. +max_retries = 5 + +# Don't show interactive progress bar while checking links. +no_progress = true + +# Website timeout from connect to response finished. +timeout = 20 + +# Minimum wait time in seconds between retries of failed requests. +retry_wait_time = 4 + +# Comma-separated list of accepted status codes for valid links. +# accept = ["200", "206", "403", "429"] +accept = ["200", "429"] + +verbose = "error"