Skip to content

Commit

Permalink
re-enable links must start with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Feb 24, 2020
1 parent 6153e5a commit 86364ea
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dev-guide/deploy.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Build for deployment

The easiest way to deploy TiDB is to use Docker Compose, see [TiDB Docker Compose Deployment](../how-to/get-started/deploy-tidb-from-docker-compose.md). For more deployment methods, see [TiDB deployment methods](/_index.md).
The easiest way to deploy TiDB is to use Docker Compose, see [TiDB Docker Compose Deployment](/how-to/get-started/deploy-tidb-from-docker-compose.md). For more deployment methods, see [TiDB deployment methods](/_index.md).

## Before you begin

You need to check the [supported platforms](./requirements.md#supported-platforms) and [prerequisites](./requirements.md#prerequisites) first.
You need to check the [supported platforms](/dev-guide/requirements.md#supported-platforms) and [prerequisites](/dev-guide/requirements.md#prerequisites) first.

## Build and install TiDB components

You can use the [build script](../scripts/build.sh) to build and install TiDB components in the `bin` directory.
You can use the [build script](/scripts/build.sh) to build and install TiDB components in the `bin` directory.

You can use the [update script](../scripts/update.sh) to update all the TiDB components to the latest version.
You can use the [update script](/scripts/update.sh) to update all the TiDB components to the latest version.
2 changes: 1 addition & 1 deletion dev-guide/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you want to develop the TiDB project, you can follow this guide.

## Before you begin

You need to check the [supported platforms](./requirements.md#supported-platforms) and [prerequisites](./requirements.md#prerequisites) first.
You need to check the [supported platforms](/dev-guide/requirements.md#supported-platforms) and [prerequisites](/dev-guide/requirements.md#prerequisites) first.

## Build TiKV

Expand Down
2 changes: 1 addition & 1 deletion dev-guide/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ The following table lists TiDB support for common architectures and operating sy
+ GCC 4.8+ with static library
+ CMake 3.1+

The [check requirement script](../scripts/check_requirement.sh) can help you check prerequisites and install the missing ones automatically.
The [check requirement script](/scripts/check_requirement.sh) can help you check prerequisites and install the missing ones automatically.

TiKV is well tested in a certain Rust version by us, and the exact version can be found in the `RUST_VERSION` file in TiKV's root directory. It is recommended to use the same version as we do.
4 changes: 4 additions & 0 deletions scripts/markdown-link-check.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
}
],
"replacementPatterns": [
{
"pattern": "^(?!(/|/media/))",
"replacement": "/ERROR:link-must-start-with-slash:"
},
{
"comment": "prefix with repo root",
"pattern": "^(?!(\\.|/ERROR:.*))",
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ while read -r tasks; do
) &
done
wait
done <<<"$(find "." -type f -name '*.md' | xargs -n 10)"
done <<<"$(find "." -type f -not -path './node_modules/*' -name '*.md' | xargs -n 10)"

error_files=$(cat $ERROR_REPORT | grep 'FILE: ' | wc -l)
error_output=$(cat $ERROR_REPORT)
Expand Down

0 comments on commit 86364ea

Please sign in to comment.