Skip to content

Commit 02381a9

Browse files
update link workflow (#681)
* update link workflow * add fail_level: any * revert change * add config file * remove unrelated / regex that exceeds max length * remove versioned docs, fix anchor links * fix links * try removing complex ignorePatterns * debug logs * remove bad configs * fix some links * update config file path * update config path and more link fixes * move config file, exclude versioned docs, other fixes * fix more links, test new action config * fix links * fix lint errors * lint fixes
1 parent 5d18860 commit 02381a9

File tree

572 files changed

+374
-73175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+374
-73175
lines changed

.github/workflows/link-check.json

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/links.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ jobs:
1111
linkCheck:
1212
name: Link Checking
1313
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
file-extensions: [".md", ".mdx"]
1714
steps:
1815
- uses: actions/checkout@v4
1916
- name: LinkCheck
2017
uses: ConsenSys/github-actions/docs-link-check@main
2118
with:
22-
FILE_EXTENSION: ${{ matrix.file-extensions }}
19+
CONFIG_FILE: .linkspector.yml

.linkspector.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
dirs:
2+
- ./docs
3+
excludedDirs:
4+
- ./build
5+
- ./.vercel
6+
- ./.docusaurus
7+
- ./node_modules
8+
- ./versioned_docs
9+
useGitIgnore: true
10+
11+
ignorePatterns:
12+
- pattern: '^http(s)?://localhost'
13+
- pattern: '^http(s)?://127.0.0.1'
14+
- pattern: '^http(s)?://gitlab.com/ConsenSys/'
15+
- pattern: '^http(s)?://consensys.net'
16+
- pattern: '^http(s)?://.+.zendesk.com'
17+
- pattern: '^http(s)?://.+.etherscan.io'
18+
- pattern: '^http(s)?://help.figma.com'
19+
- pattern: '^http(s)?://metamask.io'
20+
aliveStatusCodes:
21+
- 200
22+
- 206
23+
- 400
24+
- 403

docs/concepts/node-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ proof of work to [proof of stake consensus](proof-of-stake.md).
2020

2121
:::
2222

23-
Execution and consensus clients communicate with each other using the [Engine API](https://besu.hyperledger.org/development/public-networks/how-to/use-engine-api).
23+
Execution and consensus clients communicate with each other using the [Engine API](https://besu.hyperledger.org/public-networks/how-to/use-engine-api).
2424

2525
![Ethereum node](../images/execution-consensus-clients.png)
2626

2727
### Execution clients
2828

2929
Execution clients, such as [Besu](https://besu.hyperledger.org/), manage the execution layer, including
3030
executing transactions and updating the world state. Execution clients serve
31-
[JSON-RPC API](https://besu.hyperledger.org/development/public-networks/reference/api) requests and
31+
[JSON-RPC API](https://besu.hyperledger.org/public-networks/reference/api) requests and
3232
communicate with each other in a peer-to-peer network.
3333

3434
### Consensus clients
@@ -42,4 +42,4 @@ clients serve [REST API](../reference/rest.md) requests and communicate with eac
4242

4343
To become a validator, you must also run a validator client (either [in the same process as the beacon node](../get-started/start-teku.md#start-the-clients-in-a-single-process) or [separately](../get-started/start-teku.md#run-the-clients-separately)).
4444

45-
:::
45+
:::

docs/concepts/proof-of-stake.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 3
77
# Proof of stake
88

99
In Ethereum's [proof of stake (PoS)](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/), you
10-
must run a [full node](node-types.md#execution-and-consensus-clients) and
10+
must run a [full node](node-types.md) and
1111
[stake 32 ETH](https://ethereum.org/en/staking/) to become a validator.
1212

1313
:::note
@@ -19,11 +19,14 @@ must also run a validator client either [in the same process as the beacon node]
1919

2020
The PoS mechanism randomly chooses validators to propose or validate blocks on the [Beacon Chain](https://ethereum.org/en/upgrades/beacon-chain/) in defined time frames.
2121

22-
Proposers are responsible for proposing new consensus blocks, and non-proposing validators are responsible for validating (attesting to) proposed blocks. Validators are rewarded for proposing and attesting to consensus blocks eventually included in the Beacon Chain, and penalized for malicious behavior. Validators also receive transaction fees for included blocks.
22+
Proposers are responsible for proposing new consensus blocks, and non-proposing validators are responsible for validating (attesting to) proposed blocks.
23+
Validators are rewarded for proposing and attesting to consensus blocks eventually included in the Beacon Chain, and penalized for malicious behavior.
24+
Validators also receive transaction fees for included blocks.
2325

2426
Each consensus block contains an execution payload, which contains a list of transactions and other data required to execute and validate the payload.
2527

26-
When a node validates a consensus block, its [consensus client](node-types.md#execution-and-consensus-clients) processes the block and sends the execution payload to the [execution client](node-types.md#execution-and-consensus-clients), which:
28+
When a node validates a consensus block, its [consensus client](node-types.md#consensus-clients) processes the block
29+
and sends the execution payload to the [execution client](node-types.md#execution-clients), which:
2730

2831
1. Assembles a block on the execution layer.
2932
1. Verifies pre-conditions.

docs/concepts/slashing-protection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ One [YAML file is stored per validator] in the format `<validator-pubkey>.yml` (
2222

2323
:::note
2424

25-
Set `<data-path>` using the [`--data-path`](../reference/cli/index.md#data-path) command line option.
25+
Set `<data-path>` using the [`--data-path`](../reference/cli/index.md#data-base-path-data-path) command line option.
2626

2727
:::
2828

docs/get-started/connect/mainnet.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 1
99
:::info
1010

1111
Ethereum is a [proof-of-stake](../../concepts/proof-of-stake.md) network, and a full Ethereum node requires
12-
both [an execution client and a consensus client](../../concepts/node-types.md#execution-and-consensus-clients).
12+
both [an execution client and a consensus client](../../concepts/node-types.md).
1313

1414
:::
1515

@@ -132,9 +132,10 @@ Specify:
132132
- The URL of a checkpoint sync endpoint using the
133133
[`--checkpoint-sync-url`](../../reference/cli/index.md#checkpoint-sync-url) option.
134134
- An Ethereum address you own as the default fee recipient using the [`--validators-proposer-default-fee-recipient`](../../reference/cli/index.md#validators-proposer-default-fee-recipient) option.
135-
- The paths to the keystore `.json` file and password `.txt` file created in [step 2](#create-a-password-file-for-each-validator-key) for each validator using the [`--validator-keys`](../../reference/cli/index.md#validator-keys) option.
136-
Separate the `.json` and `.txt` files with a colon, and separate entries for multiple validators with commas.
137-
Alternatively, specify paths to directories to load multiple keys and passwords from.
135+
- The paths to the keystore `.json` file and password `.txt` file created in [step 2](#create-a-password-file-for-each-validator-key)
136+
for each validator using the [`--validator-keys`](../../reference/cli/index.md#validator-keys) option.
137+
Separate the `.json` and `.txt` files with a colon, and separate entries for multiple validators with commas.
138+
Alternatively, specify paths to directories to load multiple keys and passwords from.
138139

139140
Also, in the command:
140141

@@ -158,10 +159,12 @@ teku validator-client \
158159

159160
Specify:
160161

161-
- The location of one or more beacon node API endpoints using the [`--beacon-node-api-endpoint`](../../reference/cli/subcommands/validator-client.md#beacon-node-api-endpoint-beacon-node-api-endpoints) option.
162-
- The paths to the keystore `.json` file and password `.txt` file created in [step 2](#create-a-password-file-for-each-validator-key) for each validator using the [`--validator-keys`](../../reference/cli/index.md#validator-keys) option.
163-
Separate the `.json` and `.txt` files with a colon, and separate entries for multiple validators with commas.
164-
Alternatively, specify paths to directories to load multiple keys and passwords from.
162+
- The location of one or more beacon node API endpoints using the
163+
[`--beacon-node-api-endpoint`](../../reference/cli/subcommands/validator-client.md#beacon-node-api-endpoint-beacon-node-api-endpoints) option.
164+
- The paths to the keystore `.json` file and password `.txt` file created in [step 2](#create-a-password-file-for-each-validator-key)
165+
for each validator using the [`--validator-keys`](../../reference/cli/index.md#validator-keys) option.
166+
Separate the `.json` and `.txt` files with a colon, and separate entries for multiple validators with commas.
167+
Alternatively, specify paths to directories to load multiple keys and passwords from.
165168

166169
## 5. Wait for the clients to sync
167170

docs/get-started/install/run-docker-image.md

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,27 @@ Display the Teku command line help using the Docker image
2323
docker run consensys/teku:latest --help
2424
```
2525

26-
You can specify [Teku environment variables](../../reference/cli/index.md#teku-environment-variables) with the docker image instead of the command line options.
26+
You can specify [Teku environment variables](../../reference/cli/index.md#specify-options) with the docker image instead of the command line options.
2727

2828
```bash title="Example using Environment variables and CLI options"
29-
docker run -d -p 9000:9000/tcp -p 9000:9000/udp -p 5051:5051 -e TEKU_REST_API_ENABLED=true -e TEKU_P2P_PORT=9000 --mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest --network=holesky --eth1-endpoint=http://102.10.10.1:8545 --validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords --data-path=/var/lib/teku --log-destination=CONSOLE
29+
docker run -d \
30+
-p 9000:9000/tcp \
31+
-p 9000:9000/udp \
32+
-p 5051:5051 \
33+
-e TEKU_REST_API_ENABLED=true \
34+
-e TEKU_P2P_PORT=9000 \
35+
--mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest \
36+
--network=holesky \
37+
--eth1-endpoint=http://102.10.10.1:8545 \
38+
--validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords \
39+
--data-path=/var/lib/teku \
40+
--log-destination=CONSOLE
3041
```
3142

3243
:::tip
3344

3445
- If running Docker in the background, set [`--log-destination`](../../reference/cli/index.md#log-destination) to `console` to send all logs to the console and appear in Docker's log output.
35-
- Set [`--data-path`](../../reference/cli/index.md#data-path) to a mount point to ensure Teku data is not lost in the Docker filesystem.
46+
- Set [`--data-path`](../../reference/cli/index.md#data-base-path-data-path) to a mount point to ensure Teku data is not lost in the Docker filesystem.
3647
- [Set the Docker user to the UID of the normal user](#allow-multiple-users-to-run-the-docker-image) to ensure read/write access to the required files.
3748

3849
:::
@@ -41,10 +52,19 @@ docker run -d -p 9000:9000/tcp -p 9000:9000/udp -p 5051:5051 -e TEKU_REST_API_EN
4152

4253
If using a local volume to mount data, ensure the permissions on the directory allow other users and groups to read/write.
4354

44-
Use the Docker [`--user`](https://docs.docker.com/engine/reference/commandline/run/) option to run the container for the specified user. Use the UID because the username may not exist inside the docker container.
55+
Use the Docker [`--user`](https://docs.docker.com/engine/reference/commandline/run/) option to run the container for the specified user.
56+
Use the UID because the username may not exist inside the docker container.
4557

4658
```bash title="Example"
47-
docker run -p 9000:9000/tcp -p 9000:9000/udp --user 1001:1001 --mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest --data-base-path=/var/lib/teku --network=holesky --eth1-endpoint=http://102.10.10.1:8545 --validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords
59+
docker run \
60+
-p 9000:9000/tcp \
61+
-p 9000:9000/udp \
62+
--user 1001:1001 \
63+
--mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest \
64+
--data-base-path=/var/lib/teku \
65+
--network=holesky \
66+
--eth1-endpoint=http://102.10.10.1:8545 \
67+
--validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords
4868
```
4969

5070
## Exposing ports
@@ -59,11 +79,28 @@ Expose ports for P2P peer discovery, metrics, and REST APIs. Expose the default
5979
To run Teku exposing local ports for access:
6080

6181
```bash
62-
docker run -p <localportP2P>:30303/tcp -p <localportP2P>:30303/udp -p <localportREST>:5051 consensys/teku:latest --network=<NETWORK> --data-base-path=<DATA_DIR> --eth1-endpoint=<URL> --validator-keys=<KEY_DIR>:<PASS_DIR> --rest-api-enabled=true
82+
docker run \
83+
-p <localportP2P>:30303/tcp \
84+
-p <localportP2P>:30303/udp \
85+
-p <localportREST>:5051 consensys/teku:latest \
86+
--network=<NETWORK> \
87+
--data-base-path=<DATA_DIR> \
88+
--eth1-endpoint=<URL> \
89+
--validator-keys=<KEY_DIR>:<PASS_DIR> \
90+
--rest-api-enabled=true
6391
```
6492

6593
```bash title="Example"
66-
docker run -p 30303:30303/tcp -p 30303:30303/udp -p 5051:5051 --mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest --network=holesky --data-base-path=/var/lib/teku --eth1-endpoint=http://102.10.10.1:8545 --validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords --rest-api-enabled=true
94+
docker run \
95+
-p 30303:30303/tcp \
96+
-p 30303:30303/udp \
97+
-p 5051:5051 \
98+
--mount type=bind,source=/Users/user1/teku/,target=/var/lib/teku consensys/teku:latest \
99+
--network=holesky \
100+
--data-base-path=/var/lib/teku \
101+
--eth1-endpoint=http://102.10.10.1:8545 \
102+
--validator-keys=/var/lib/teku/validator/keys:/var/lib/teku/validator/passwords \
103+
--rest-api-enabled=true
67104
```
68105

69106
## Run Teku using Docker Compose

docs/get-started/start-teku.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ By default, Teku connects to `mainnet`. Use the [`--network`](../reference/cli/i
2222
## Prerequisites
2323

2424
- [Teku installed](install/install-binaries.md).
25-
- [An execution client synced](connect/mainnet.md#2-start-the-execution-client).
26-
- [Validator keystores and password files](connect/mainnet.md#3-generate-validator-keys-and-stake-eth).
25+
- [An execution client synced](connect/mainnet.md#3-start-the-execution-client).
26+
- [Validator keystores and password files](connect/mainnet.md#2-generate-validator-keys).
2727

2828
## Start the clients in a single process
2929

docs/how-to/configure/tls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ In the command:
8080
[Known clients file]: ../../tutorials/configure-external-signer-tls.md#3-create-the-known-clients-file
8181
[Teku's password-protected PKCS12 or JKS keystore and password file]: ../../tutorials/configure-external-signer-tls.md#teku-keystore-and-password-file
8282
[Web3Signer's password-protected PKCS12 or JKS truststore and password file]: ../../tutorials/configure-external-signer-tls.md#2-create-the-truststore-and-password-file
83-
[Besu]: https://besu.hyperledger.org/stable/public-networks/get-started/install
83+
[Besu]: https://besu.hyperledger.org/public-networks/get-started/install
8484
[Slashing protection]: https://docs.web3signer.consensys.net/en/latest/concepts/slashing-protection/
8585
[configure your slashing protection database]: https://docs.web3signer.consensys.net/en/latest/HowTo/Configure-Slashing-Protection/

0 commit comments

Comments
 (0)