mirror of https://github.com/istio/istio.io.git
Add a new link check to prevent links to specific lines in GitHub files. (#3387)
This commit is contained in:
parent
dd91656544
commit
3f3f3f5353
|
@ -92,7 +92,7 @@ deployments will have agents (Envoy or Mixer adapters) that produce these attrib
|
|||
| `request.auth.presenter` | string | The authorized presenter of the credential. This value should reflect the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth2 client id. | 123456789012.my-svc.com |
|
||||
| `request.auth.claims` | map[string, string] | all raw string claims from the `origin` JWT | `iss`: `issuer@foo.com`, `sub`: `sub@foo.com`, `aud`: `aud1` |
|
||||
| `request.api_key` | string | The API key used for the request. | abcde12345 |
|
||||
| `check.error_code` | int64 | The error [code](https://github.com/google/protobuf/blob/master/src/google/protobuf/stubs/status.h#L44) for Mixer Check call. | 5 |
|
||||
| `check.error_code` | int64 | The error [code](https://github.com/google/protobuf/blob/master/src/google/protobuf/stubs/status.h) for Mixer Check call. | 5 |
|
||||
| `check.error_message` | string | The error message for Mixer Check call. | Could not find the resource |
|
||||
| `check.cache_hit` | boolean | Indicates whether Mixer check call hits local cache. | |
|
||||
| `quota.cache_hit` | boolean | Indicates whether Mixer quota call hits local cache. | |
|
||||
|
|
|
@ -83,7 +83,7 @@ weight: 10
|
|||
| `request.auth.presenter` | string | 授权证书的出示人。此值应反映 JWT 或 OAuth2 客户端 ID 中的可选授权演示者(`azp`)声明。 | 123456789012.my-svc.com |
|
||||
| `request.auth.claims` | map[string, string] | 原始 JWT 中所有的的字符串声明。 | `iss`: `issuer@foo.com`, `sub`: `sub@foo.com`, `aud`: `aud1` |
|
||||
| `request.api_key` | string | 用于请求的 API key 。 | abcde12345 |
|
||||
| `check.error_code` | int64 | Mixer Check 调用的[错误码](https://github.com/google/protobuf/blob/master/src/google/protobuf/stubs/status.h#L44) 。 | 5 |
|
||||
| `check.error_code` | int64 | Mixer Check 调用的[错误码](https://github.com/google/protobuf/blob/master/src/google/protobuf/stubs/status.h) 。 | 5 |
|
||||
| `check.error_message` | string | Mixer Check 调用的错误消息。 | Could not find the resource |
|
||||
| `check.cache_hit` | boolean | 标示 Mixer check 调用是否命中本地缓存。 | |
|
||||
| `quota.cache_hit` | boolean | 标示 Mixer 限额调用是否命中本地缓存。 | |
|
||||
|
|
|
@ -108,6 +108,14 @@ do
|
|||
echo "Ensure markdown content only uses {{< tip >}}, {{< warning >}}, {{< idea >}}, and {{< quote >}} instead of block quotes"
|
||||
FAILED=1
|
||||
fi
|
||||
|
||||
grep -e "\"https://github.*#L[0-9]*\"" $f
|
||||
if [[ "$?" == "0" ]]
|
||||
then
|
||||
echo $f
|
||||
echo "Ensure markdown doesn't use links to specific lines in GitHub files as those are too brittle"
|
||||
FAILED=1
|
||||
fi
|
||||
done
|
||||
|
||||
htmlproofer ./public --assume-extension --check-html --disable_external ${DISABLE_EXTERNAL} --check-external-hash --check-opengraph --timeframe 2d --storage-dir .htmlproofer --url-ignore "/localhost/,/github.com/istio/istio.io/edit/master/,/github.com/istio/istio/issues/new/choose/,/groups.google.com/forum/,/www.trulia.com/"
|
||||
|
|
Loading…
Reference in New Issue