Skip to content

Commit 25aa0d4

Browse files
authored
[Enhancement]: add md link check github action (#1320)
* add md link check action * add config * fix doc link * fix dead links * change dev-1.x to 1.x * fix mmocr url
1 parent 09c6bd7 commit 25aa0d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+179
-137
lines changed

.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
label: Checklist
1010
options:
1111
- label: I have searched related issues but cannot get the expected help.
12-
- label: 2. I have read the [FAQ documentation](https://github.com/open-mmlab/mmdeploy/blob/master/docs/en/faq.md) but cannot get the expected help.
12+
- label: 2. I have read the [FAQ documentation](https://github.com/open-mmlab/mmdeploy/tree/1.x/docs/en/faq.md) but cannot get the expected help.
1313
- label: 3. The bug has not been fixed in the latest version.
1414
- type: textarea
1515
attributes:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ blank_issues_enabled: false
22

33
contact_links:
44
- name: 💥 FAQ
5-
url: https://github.com/open-mmlab/mmdeploy/blob/master/docs/en/faq.md
5+
url: https://github.com/open-mmlab/mmdeploy/tree/1.x/docs/en/faq.md
66
about: Check if your issue already has solutions
77
- name: 💬 Forum
88
url: https://github.com/open-mmlab/mmdeploy/discussions

.github/md-link-config.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"ignorePatterns": [
3+
4+
{
5+
"pattern": "^https://developer.nvidia.com/"
6+
},
7+
{
8+
"pattern": "^https://docs.openvino.ai/"
9+
},
10+
{
11+
"pattern": "^https://developer.android.com/"
12+
},
13+
{
14+
"pattern": "^https://developer.qualcomm.com/"
15+
},
16+
{
17+
"pattern": "^http://localhost"
18+
}
19+
],
20+
"httpHeaders": [
21+
{
22+
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
23+
"headers": {
24+
"Accept-Encoding": "zstd, br, gzip, deflate"
25+
}
26+
}
27+
],
28+
"timeout": "20s",
29+
"retryOn429": true,
30+
"retryCount": 5,
31+
"fallbackRetryDelay": "30s",
32+
"aliveStatusCodes": [200, 206, 429]
33+
}

.github/workflows/lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
run: |
2828
python .github/scripts/check_index_rst.py docs/en/index.rst
2929
python .github/scripts/check_index_rst.py docs/zh_cn/index.rst
30+
- name: Check markdown link
31+
uses: gaurav-nelson/github-action-markdown-link-check@v1
32+
with:
33+
use-quiet-mode: 'yes'
34+
use-verbose-mode: 'yes'
35+
# check-modified-files-only: 'yes'
36+
config-file: '.github/md-link-config.json'
37+
folder-path: 'docs/en, docs/zh_cn'
38+
file-path: './README.md, ./LICENSE, ./README_zh-CN.md'
3039
- name: Check doc link
3140
run: |
3241
python .github/scripts/doc_link_checker.py --target docs/zh_cn

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<div>&nbsp;</div>
2020
</div>
2121

22-
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mmdeploy.readthedocs.io/en/latest/)
22+
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mmdeploy.readthedocs.io/en/1.x/)
2323
[![badge](https://github.com/open-mmlab/mmdeploy/workflows/build/badge.svg)](https://github.com/open-mmlab/mmdeploy/actions)
24-
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
25-
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/blob/master/LICENSE)
24+
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/1.x/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
25+
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/tree/1.x/LICENSE)
2626
[![issue resolution](https://img.shields.io/github/issues-closed-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
2727
[![open issues](https://img.shields.io/github/issues-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
2828

@@ -75,7 +75,7 @@ The benchmark can be found from [here](docs/en/03-benchmark/benchmark.md)
7575

7676
All kinds of modules in the SDK can be extended, such as `Transform` for image processing, `Net` for Neural Network inference, `Module` for postprocessing and so on
7777

78-
## [Documentation](https://mmdeploy.readthedocs.io/en/latest/)
78+
## [Documentation](https://mmdeploy.readthedocs.io/en/1.x/)
7979

8080
Please read [getting_started](docs/en/get_started.md) for the basic usage of MMDeploy. We also provide tutoials about:
8181

README_zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<div>&nbsp;</div>
2020
</div>
2121

22-
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mmdeploy.readthedocs.io/zh_CN/latest/)
22+
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mmdeploy.readthedocs.io/zh_CN/1.x/)
2323
[![badge](https://github.com/open-mmlab/mmdeploy/workflows/build/badge.svg)](https://github.com/open-mmlab/mmdeploy/actions)
24-
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
25-
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/blob/master/LICENSE)
24+
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/1.x/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
25+
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/tree/1.x/LICENSE)
2626
[![issue resolution](https://img.shields.io/github/issues-closed-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
2727
[![open issues](https://img.shields.io/github/issues-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
2828

@@ -75,7 +75,7 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
7575
- Net 推理
7676
- Module 后处理
7777

78-
## [中文文档](https://mmdeploy.readthedocs.io/zh_CN/latest/)
78+
## [中文文档](https://mmdeploy.readthedocs.io/zh_CN/1.x/)
7979

8080
- [快速上手](docs/zh_cn/get_started.md)
8181
- [编译](docs/zh_cn/01-how-to-build/build_from_source.md)
@@ -119,7 +119,7 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
119119

120120
## 基准与模型库
121121

122-
基准和支持的模型列表可以在[基准](https://mmdeploy.readthedocs.io/zh_CN/latest/benchmark.html)[模型列表](https://mmdeploy.readthedocs.io/en/latest/supported_models.html)中获得。
122+
基准和支持的模型列表可以在[基准](https://mmdeploy.readthedocs.io/zh_CN/1.x/03-benchmark/benchmark.html)[模型列表](https://mmdeploy.readthedocs.io/en/1.x/03-benchmark/supported_models.html)中获得。
123123

124124
## 贡献指南
125125

demo/tutorials/tutorials_1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": "mAWHDEbr6Q2i"
77
},
88
"source": [
9-
"[![Open in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-mmlab/mmdeploy/blob/master/demo/tutorials_1.ipynb)\n",
9+
"[![Open in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-mmlab/mmdeploy/tree/1.x/demo/tutorials_1.ipynb)\n",
1010
"# 前言\n",
1111
"OpenMMLab 的算法如何部署?是很多社区用户的困惑。而模型部署工具箱 [MMDeploy](https://zhuanlan.zhihu.com/p/450342651) 的开源,强势打通了从算法模型到应用程序这 \"最后一公里\"\n",
1212
"今天我们将开启模型部署入门系列教程,在模型部署开源库 MMDeploy 的辅助下,介绍以下内容:\n",

docker/CPU/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ ENV PATH="/root/workspace/ncnn/build/tools/quantize/:${PATH}"
8585
### install mmdeploy
8686
WORKDIR /root/workspace
8787
ARG VERSION
88-
RUN git clone -b dev-1.x https://github.com/open-mmlab/mmdeploy.git &&\
88+
RUN git clone -b 1.x https://github.com/open-mmlab/mmdeploy.git &&\
8989
cd mmdeploy &&\
90-
if [ -z ${VERSION} ] ; then echo "No MMDeploy version passed in, building on dev-1.x" ; else git checkout tags/v${VERSION} -b tag_v${VERSION} ; fi &&\
90+
if [ -z ${VERSION} ] ; then echo "No MMDeploy version passed in, building on 1.x" ; else git checkout tags/v${VERSION} -b tag_v${VERSION} ; fi &&\
9191
git submodule update --init --recursive &&\
9292
rm -rf build &&\
9393
mkdir build &&\

docker/GPU/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ RUN cp -r /usr/local/lib/python${PYTHON_VERSION}/dist-packages/tensorrt* /opt/co
6565
ENV ONNXRUNTIME_DIR=/root/workspace/onnxruntime-linux-x64-${ONNXRUNTIME_VERSION}
6666
ENV TENSORRT_DIR=/workspace/tensorrt
6767
ARG VERSION
68-
RUN git clone -b dev-1.x https://github.com/open-mmlab/mmdeploy &&\
68+
RUN git clone -b 1.x https://github.com/open-mmlab/mmdeploy &&\
6969
cd mmdeploy &&\
70-
if [ -z ${VERSION} ] ; then echo "No MMDeploy version passed in, building on dev-1.x" ; else git checkout tags/v${VERSION} -b tag_v${VERSION} ; fi &&\
70+
if [ -z ${VERSION} ] ; then echo "No MMDeploy version passed in, building on 1.x" ; else git checkout tags/v${VERSION} -b tag_v${VERSION} ; fi &&\
7171
git submodule update --init --recursive &&\
7272
mkdir -p build &&\
7373
cd build &&\

docs/en/01-how-to-build/android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ make -j$(nproc) install
9797
<tr>
9898
<td>OpenJDK </td>
9999
<td>It is necessary for building Java API.</br>
100-
See <a href='https://github.com/open-mmlab/mmdeploy/blob/dev-1.x/csrc/mmdeploy/apis/java/README.md'> Java API build </a> for building tutorials.
100+
See <a href='https://github.com/open-mmlab/mmdeploy/tree/1.x/csrc/mmdeploy/apis/java/README.md'> Java API build </a> for building tutorials.
101101
</td>
102102
</tr>
103103
</tbody>

0 commit comments

Comments
 (0)