Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] support dead link check #2579

Merged
merged 32 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3b736c5
[feature]support dead link check
zhangshenghang Aug 21, 2024
74a8281
[feature]support dead link check
zhangshenghang Aug 21, 2024
250a443
[feature]support dead link check
zhangshenghang Aug 21, 2024
345b79c
[feature]fix dead link
zhangshenghang Aug 21, 2024
5ad94e6
[feature]fix dead link
zhangshenghang Aug 21, 2024
c1e2e47
[feature]fix dead link
zhangshenghang Aug 21, 2024
0104ae6
[feature]fix dead link
zhangshenghang Aug 21, 2024
1fa063d
[feature]fix dead link
zhangshenghang Aug 21, 2024
a9e4842
[feature]fix dead link
zhangshenghang Aug 21, 2024
6f927b1
[feature]fix dead link
zhangshenghang Aug 21, 2024
9447392
[feature]fix dead link
zhangshenghang Aug 21, 2024
5b9e761
[feature]fix dead link
zhangshenghang Aug 21, 2024
c7b5690
[feature]fix dead link
zhangshenghang Aug 21, 2024
4265776
[feature]fix dead link
zhangshenghang Aug 21, 2024
78544e1
[feature]fix dead link
zhangshenghang Aug 21, 2024
640f480
[feature]fix dead link
zhangshenghang Aug 21, 2024
11af7d3
[feature]fix dead link
zhangshenghang Aug 21, 2024
f02c5f1
[feature]fix dead link
zhangshenghang Aug 21, 2024
528904e
[feature]fix dead link
zhangshenghang Aug 21, 2024
b739b57
[feature]fix dead link
zhangshenghang Aug 21, 2024
ac2870b
[feature]fix dead link
zhangshenghang Aug 21, 2024
0ac4dd7
[feature]fix dead link
zhangshenghang Aug 21, 2024
e78c934
[feature]fix dead link
zhangshenghang Aug 21, 2024
102445b
[feature]fix dead link
zhangshenghang Aug 21, 2024
113c670
[feature]fix dead link
zhangshenghang Aug 21, 2024
d902151
[feature]fix dead link
zhangshenghang Aug 21, 2024
1052433
[feature]fix dead link
zhangshenghang Aug 21, 2024
4e9a849
[feature]update
zhangshenghang Aug 21, 2024
fa515c1
[feature]move file directory
zhangshenghang Aug 21, 2024
c97142c
[feature]fix some problem
zhangshenghang Aug 21, 2024
03a2d79
Merge branch 'master' into feature-support-dead-link-check
zhangshenghang Aug 21, 2024
119f0b6
Merge branch 'master' into feature-support-dead-link-check
tomsun28 Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/exclude_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
./home/versioned_docs/version-v1.5.x/community/how-to-release.md
./home/versioned_docs/version-v1.5.x/start/postgresql-change.md
./home/versioned_docs/version-v1.4.x/start/postgresql-change.md
./home/versioned_docs/version-v1.5.x/introduce.md
./home/versioned_docs/version-v1.4.x/introduce.md
./home/versioned_docs/version-v1.5.x/help/sqlserver.md
./home/versioned_docs/version-v1.4.x/help/sqlserver.md
./home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md
./home/versioned_docs/version-v1.4.x/help/alert_threshold_expr.md
./home/versioned_docs/version-v1.4.x/others/resource.md
./home/versioned_docs/version-v1.5.x/others/resource.md
./home/docs/community/how-to-release.md
./home/blog/2022-06-01-hertzbeat-v1.0.md
./home/blog/2023-12-11-hertzbeat-v1.4.3.md
./home/blog/2023-11-12-hertzbeat-v1.4.2.md
./home/blog/2024-01-18-hertzbeat-v1.4.4.md
./home/docs/introduce.md
./home/docs/help/sqlserver.md
./home/docs/postgresql-change.md
./home/docs/help/alert_threshold_expr.md
./home/docs/others/resource.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/postgresql-change.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md
./home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/postgresql-change.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/introduce.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/sqlserver.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold_expr.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/resource.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/tdengine-init.md
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md
20 changes: 20 additions & 0 deletions .github/link_check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"ignorePatterns": [
{
"pattern": "^(?!http).*"
},
{
"pattern": "!\\[.*\\]\\((?!http).*\\)"
}
],
"timeout": "10s",
"retryOn429": true,
"retryCount": 10,
"fallbackRetryDelay": "1000s",
"aliveStatusCodes": [
0,
200,
401,
403
]
}
8 changes: 8 additions & 0 deletions .github/workflows/doc-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ jobs:
else
echo "All file names are valid."
fi
- name: Dead Link
run: |
sudo npm install -g markdown-link-check@3.8.7
for file in $(find ./home -name "*.md"); do
if ! grep -Fxq "$file" .github/exclude_files.txt; then
markdown-link-check -c .github/link_check.json -q "$file"
fi
done
- name: NPM INSTALL
working-directory: home
run: npm install
Expand Down
8 changes: 4 additions & 4 deletions home/docs/start/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ Apache HertzBeat (incubating)'s metadata information is stored in H2 or Mysql, P
2. If using the built-in default H2 database
- Need to mount or back up `-v $(pwd)/data:/opt/hertzbeat/data` database file directory in the container `/opt/hertzbeat/data`
- Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image
- Refer to [Docker installation of HertzBeat](docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data`
- Refer to [Docker installation of HertzBeat](./docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data`
3. If using external relational database Mysql, PostgreSQL
- No need to mount the database file directory in the backup container
- Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image
- Refer to [Docker installation HertzBeat](docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml`
- Refer to [Docker installation HertzBeat](./docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml`

### Upgrade For Package Deploy

1. If using the built-in default H2 database
- Back up the database file directory under the installation package `/opt/hertzbeat/data`
- If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define`
- `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package
- Refer to [Installation package to install HertzBeat](package-deploy) to start using the new installation package
- Refer to [Installation package to install HertzBeat](./package-deploy) to start using the new installation package
2. If using external relational database Mysql, PostgreSQL
- No need to back up the database file directory under the installation package
- If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define`
- `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package
- Refer to [Installation package to install HertzBeat](package-deploy) to start with the new installation package and configure the database connection in `application.yml`
- Refer to [Installation package to install HertzBeat](./package-deploy) to start with the new installation package and configure the database connection in `application.yml`

**HAVE FUN**
2 changes: 1 addition & 1 deletion script/docker-compose/hertzbeat-mysql-iotdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##### docker compose deploys hertzbeat and its dependent services

1. Download the hertzbeat-docker-compose installation deployment script file
The script file is located in `script/docker-compose/hertzbeat-mysql-iotdb` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-iotdb)
The script file is located in `script/docker-compose/hertzbeat-mysql-iotdb` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-iotdb)

2. Add MYSQL jdbc driver jar

Expand Down
2 changes: 1 addition & 1 deletion script/docker-compose/hertzbeat-mysql-iotdb/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##### docker compose部署hertzbeat及其依赖服务

1. 下载hertzbeat-docker-compose安装部署脚本文件
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-iotdb` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-iotdb)
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-iotdb` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-iotdb)

2. 添加 MYSQL jdbc 驱动 jar
下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip
Expand Down
2 changes: 1 addition & 1 deletion script/docker-compose/hertzbeat-mysql-tdengine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##### docker compose deploys hertzbeat and its dependent services

1. Download the hertzbeat-docker-compose installation deployment script file
The script file is located in `script/docker-compose/hertzbeat-mysql-tdengine` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine)
The script file is located in `script/docker-compose/hertzbeat-mysql-tdengine` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine)

2. Add MYSQL jdbc driver jar

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##### docker compose部署hertzbeat及其依赖服务

1. 下载hertzbeat-docker-compose安装部署脚本文件
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-tdengine` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine)
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-tdengine` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine)

2. 添加 MYSQL jdbc 驱动 jar
下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##### docker compose deploys hertzbeat and its dependent services

1. Download the hertzbeat-docker-compose installation deployment script file
The script file is located in `script/docker-compose/hertzbeat-mysql-victoria-metrics` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics)
The script file is located in `script/docker-compose/hertzbeat-mysql-victoria-metrics` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics)

2. Add MYSQL jdbc driver jar

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##### docker compose部署hertzbeat及其依赖服务

1. 下载hertzbeat-docker-compose安装部署脚本文件
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-victoria-metrics` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-mysql-victoria-metrics)
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics)

2. 添加 MYSQL jdbc 驱动 jar
下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##### docker compose部署hertzbeat及其依赖服务

1. 下载hertzbeat-docker-compose安装部署脚本文件
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-postgre-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgre-victoria-metrics)
脚本文件位于代码仓库下`script/docker-compose/hertzbeat-postgre-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-victoria-metrics)


2. 进入部署脚本 docker-compose 目录, 执行
Expand Down
Loading