Skip to content

Commit

Permalink
[CI](docs)Add deadlink check (apache#22736)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs authored Aug 9, 2023
1 parent 77d3d4e commit 1cd99c2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .dlc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
},
{
"pattern": "^https://twitter.com*"
}
],
"timeout": "10s",
"retryOn429": true,
"retryCount": 10,
"fallbackRetryDelay": "1000s",
"aliveStatusCodes": [
200,
401,
403
]
}
38 changes: 38 additions & 0 deletions .github/workflows/deadlink-check.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- run: |
for file in $(find . -name "*.md"); do
markdown-link-check -c .dlc.json -q "$file"
done
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1cd99c2

Please sign in to comment.