diff --git a/.dlc.json b/.dlc.json new file mode 100644 index 0000000000..99e425420b --- /dev/null +++ b/.dlc.json @@ -0,0 +1,19 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://localhost" + }, + { + "pattern": "^https://twitter.com*" + } + ], + "timeout": "10s", + "retryOn429": true, + "retryCount": 10, + "fallbackRetryDelay": "1000s", + "aliveStatusCodes": [ + 200, + 401, + 403 + ] +} \ No newline at end of file diff --git a/.github/workflows/deadlink-check.yml b/.github/workflows/deadlink-check.yml new file mode 100644 index 0000000000..cd5d27f8b1 --- /dev/null +++ b/.github/workflows/deadlink-check.yml @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Dead Link Checker + +on: + pull_request: + schedule: + - cron: '0 18 * * *' # TimeZone: UTC 0 + +concurrency: + group: dlc-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + CheckDeadLinks: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v3 + - run: sudo npm install -g markdown-link-check@3.10.0 + - run: | + for file in $(find . -name "*.md"); do + markdown-link-check -c .dlc.json -q "$file" + done \ No newline at end of file diff --git a/samples/doris-demo/flink-demo/src/main/java/org/apache/doris/demo/flink/analyze/instructions.md b/samples/doris-demo/flink-demo/src/main/java/org/apache/doris/demo/flink/analyze/instructions.md index c5195020cd..68ab2e0e41 100644 --- a/samples/doris-demo/flink-demo/src/main/java/org/apache/doris/demo/flink/analyze/instructions.md +++ b/samples/doris-demo/flink-demo/src/main/java/org/apache/doris/demo/flink/analyze/instructions.md @@ -31,7 +31,7 @@ Realized through flink doris connector **Note:** Because the Flink doris connector jar package is not in the Maven central warehouse, you need to compile it separately and add it to the classpath of your project. Refer to the compilation and use of Flink doris connector: -[Flink doris connector]: https://doris.apache.org/master/zh-CN/extending-doris/flink-doris-connector.html +[Flink doris connector]: https://doris.apache.org/zh-CN/docs/dev/ecosystem/flink-doris-connector 2.flink jdbc connector