Skip to content

Commit 3775112

Browse files
Merge pull request #494 from yiannistri/493-ci-check-links
ci: Check for broken links in MD files
2 parents a716431 + 76540f2 commit 3775112

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR check Markdown links
2+
3+
on: [pull_request, workflow_dispatch]
4+
5+
# Remove all permissions from GITHUB_TOKEN except metadata.
6+
permissions: {}
7+
8+
jobs:
9+
markdown-link-check:
10+
name: Broken Links
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: |
15+
npm install -g [email protected]
16+
find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check --quiet --config .markdown-link-check.json

.markdown-link-check.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^http://localhost:3000/$"
5+
}
6+
]
7+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Please see our [book](https://rancher.github.io/cluster-api-provider-rke2/) for
1818

1919
## How to contribute?
2020

21-
See our [contributor guide](https://rancher.github.io/cluster-api-provider-rke2/03_developer/00.html) for more details on how to get involved.
21+
See our [contributor guide](https://rancher.github.io/cluster-api-provider-rke2/04_developer/00.html) for more details on how to get involved.

docs/book/src/03_examples/01_aws.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ clusterctl init --bootstrap rke2 --control-plane rke2 --infrastructure aws
1414

1515
## Create a workload cluster
1616

17-
Before creating a workload clusters, it is required to build an AMI for the RKE2 version that is going to be installed on the cluster. You can follow the steps in the [image-builder README](../../image-builder/README.md#aws) to build the AMI.
17+
Before creating a workload clusters, it is required to build an AMI for the RKE2 version that is going to be installed on the cluster. You can follow the steps in the [image-builder README](https://github.com/rancher/cluster-api-provider-rke2/tree/main/image-builder#aws) to build the AMI.
1818

1919
You will need to set the following environment variables:
2020

docs/old/RKE2 Cluster API Provider - Data Type definitions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Therefore a particular attention has to be given to the kinds of manifests the e
1212

1313
RKE2 is a very configurable Kubernetes distribution. The main ways to configure RKE2 are as follows:
1414

15-
- config.yaml file (default location at /etc/rancher/rke2/): configuration options for RKE2 that are described in this [documentation page]([Server Configuration Reference - RKE2 - Rancher's Next Generation Kubernetes Distribution](https://docs.rke2.io/install/install_options/server_config/))
15+
- config.yaml file (default location at /etc/rancher/rke2/): configuration options for RKE2 that are described in this [documentation page]([Server Configuration Reference - RKE2 - Rancher's Next Generation Kubernetes Distribution](https://docs.rke2.io/reference/server_config))
1616

1717
- registries.yaml (default location at /etc/rancher/rke2/): Container Image registry configuration for the cluster (mirrors, rewrites, etc.), documentation available in this [RKE2 Documentation page](https://docs.rke2.io/install/containerd_registry_configuration)
1818

19-
- Environement variables for versions, etc. (options documented [here]([Overview - RKE2 - Rancher's Next Generation Kubernetes Distribution](https://docs.rke2.io/install/install_options/install_options/#configuring-the-linux-installation-script)))
19+
- Environment variables for versions, etc. (options documented [here]([Overview - RKE2 - Rancher's Next Generation Kubernetes Distribution](https://docs.rke2.io/install/configuration#configuring-the-linux-installation-script)))
2020

2121
- Possibly automatically deploy manifests in `/var/lib/rancher/rke2/server/manifests/`
2222

0 commit comments

Comments
 (0)