Skip to content

Commit 27cd557

Browse files
authored
Merge pull request #1453 from alexeldeib/ace/deadlink
fix: dead links; add ci link check for docs
2 parents 31c487d + 53acd8f commit 27cd557

File tree

6 files changed

+37
-6
lines changed

6 files changed

+37
-6
lines changed

.github/workflows/lint-docs.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint Documentation
2+
on:
3+
push:
4+
paths:
5+
- "docs/**"
6+
branches:
7+
- main
8+
pull_request:
9+
paths: "docs/**"
10+
jobs:
11+
lint_docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: "14"
18+
- name: Install markdown-link-check
19+
run: npm install -g markdown-link-check
20+
- name: markdown-link-check
21+
run: find . -name \*.md | xargs -I{} markdown-link-check -c .markdownlinkcheck.json {}

.markdownlinkcheck.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"ignorePatterns": [{
3+
"pattern": "^https://calendar.google.com/calendar"
4+
}],
5+
"timeout": "5s",
6+
"retryOn429": true,
7+
"retryCount": 5,
8+
"fallbackRetryDelay": "30s",
9+
"aliveStatusCodes": [200, 206]
10+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ We also use the issue tracker to track features. If you have an idea for a featu
130130
[prow]: https://go.k8s.io/bot-commands
131131
[bug_report]: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/new?template=bug_report.md
132132
[feature_request]: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/new?template=feature_request.md
133-
[slack_info]: https://github.com/kubernetes/community/blob/master/communication.md#social-media
133+
[slack_info]: https://github.com/kubernetes/community/tree/master/communication#slack
134134
[cluster_api]: https://github.com/kubernetes-sigs/cluster-api
135135
[quickstart]: https://cluster-api.sigs.k8s.io/user/quick-start.html
136136
[flavors_doc]: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/master/templates/flavors/README.md

docs/book/src/developers/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ If you want to develop in both CAPI and CAPZ at the same time, then this is the
163163

164164
To use [Tilt](https://tilt.dev/) for a simplified development workflow, follow the [instructions](https://cluster-api.sigs.k8s.io/developer/tilt.html) in the cluster-api repo. The instructions will walk you through cloning the Cluster API (CAPI) repository and configuring Tilt to use `kind` to deploy the cluster api management components.
165165

166-
> you may wish to checkout out the correct version of CAPI to match the [version used in CAPZ](go.mod)
166+
> you may wish to checkout out the correct version of CAPI to match the [version used in CAPZ][go.mod]
167167
168168
Note that `tilt up` will be run from the `cluster-api repository` directory and the `tilt-settings.json` file will point back to the `cluster-api-provider-azure` repository directory. Any changes you make to the source code in `cluster-api` or `cluster-api-provider-azure` repositories will automatically redeployed to the `kind` cluster.
169169

@@ -460,7 +460,7 @@ You can optionally set the following variables:
460460
| `USE_CI_ARTIFACTS` | Use a CI version of Kubernetes, ie. not a released version (eg. `v1.19.0-alpha.1.426+0926c9c47677e9`) |
461461
| `CI_VERSION` | Provide a custom CI version of Kubernetes. By default, the latest master commit will be used. |
462462
| `TEST_CCM` | Build a cluster that uses custom versions of the Azure cloud-provider cloud-controller-manager and node-controller-manager images |
463-
| `EXP_MACHINE_POOL` | Use [Machine Pool](topics/machinepools.md) for worker machines. |
463+
| `EXP_MACHINE_POOL` | Use [Machine Pool](../topics/machinepools.md) for worker machines. |
464464
| `REGISTRY` | Registry to push any custom k8s images or cloud provider images built. |
465465
| `CLUSTER_TEMPLATE` | Use a custom cluster template. By default, the script will choose the appropriate cluster template based on existing environment variabes. |
466466

docs/book/src/topics/failure-domains.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Failure Domains
22

3-
The Azure provider includes the support for [failure domains](https://cluster-api.sigs.k8s.io/developer/providers/v1alpha2-to-v1alpha4.html#optional-support-failure-domains) introduced as part of v1alpha4.
3+
The Azure provider includes the support for [failure domains](https://cluster-api.sigs.k8s.io/developer/providers/v1alpha2-to-v1alpha3.html#optional-support-failure-domains) introduced as part of v1alpha3.
44

55
## Failure domains in Azure
66

docs/book/src/topics/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ ssh -J capi@${apiserver} capi@${node}
155155

156156
## Automated log collection
157157

158-
As part of [CI](../../../../scripts/ci-e2e.sh) there is a [log collection script](hack/../../hack/log/log-dump.sh) which you can also leverage to pull all the logs for machines which will dump logs to `${PWD}/_artifacts}` by default:
158+
As part of [CI](../../../../scripts/ci-e2e.sh) there is a [log collection script](../../../../hack/log/log-dump.sh) which you can also leverage to pull all the logs for machines which will dump logs to `${PWD}/_artifacts}` by default:
159159

160160
```bash
161161
./hack/log/log-dump.sh
162162
```
163163

164-
There are also some [provided scripts](/hack/debugging/Readme.md) that can help automate a few common tasks.
164+
There are also some [provided scripts](../../../../hack/debugging/Readme.md) that can help automate a few common tasks.

0 commit comments

Comments
 (0)