Skip to content

Commit

Permalink
Add more redirects (#455)
Browse files Browse the repository at this point in the history
* Add more redirects

* fix discord links
  • Loading branch information
alexandratran committed May 11, 2023
1 parent 1b1b937 commit 23e895a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/concepts/slashing-protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Teku provides command line options to [import] or [export] the slashing protecti

:::tip

Teku also supports [doppelganger detection](../how-to/doppelganger-detection.md) to help prevent slashing. This is an early access feature.
Teku also supports [doppelganger detection](../how-to/enable-doppelganger-detection.md) to help prevent slashing. This is an early access feature.

:::

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/how-to/prevent-slashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If using an external signer that implements its own slashing protection (for exa

:::tip

You can also [enable doppelganger detection](doppelganger-detection.md) to help prevent slashing. This is an early access feature.
You can also [enable doppelganger detection](enable-doppelganger-detection.md) to help prevent slashing. This is an early access feature.

:::

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ beacon-liveness-tracking-enabled: true

<!--/tabs-->

Enables or disables validator liveness tracking. Used by [doppelganger detection](../../how-to/doppelganger-detection.md). The default is `false`.
Enables or disables validator liveness tracking. Used by [doppelganger detection](../../how-to/enable-doppelganger-detection.md). The default is `false`.

### builder-bid-compare-factor

Expand Down Expand Up @@ -422,7 +422,7 @@ doppelganger-detection-enabled: true
<!--/tabs-->
Enables or disables [doppelganger detection](../../how-to/doppelganger-detection.md). The default is `false`.
Enables or disables [doppelganger detection](../../how-to/enable-doppelganger-detection.md). The default is `false`.
### ee-endpoint
Expand Down
31 changes: 22 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const config = {
position: "right",
},
{
href: "https://discord.gg/ChtFaC4",
href: "https://discord.com/invite/consensys",
className: "header-discord-link",
position: "right",
},
Expand Down Expand Up @@ -234,7 +234,7 @@ const config = {
items: [
{
label: "ConsenSys Discord",
href: "https://discord.gg/ChtFaC4",
href: "https://discord.com/invite/consensys",
},
{
label: "Teku GitHub",
Expand Down Expand Up @@ -367,10 +367,18 @@ const config = {
from: "/HowTo/Configure/Configure-TLS",
to: "/how-to/configure/tls",
},
{
from: "/HowTo/Configure/Builder-Network",
to: "/how-to/configure/builder-network",
},
{
from: "/HowTo/Find-and-Connect/Specifying-NAT",
to: "/how-to/find-and-connect/specify-nat",
},
{
from: "/HowTo/Find-and-Connect/Improve-Connectivity",
to: "/how-to/find-and-connect/improve-connectivity",
},
{
from: "/HowTo/Voluntary-Exit",
to: "/how-to/voluntarily-exit",
Expand All @@ -394,6 +402,18 @@ const config = {
from: "/HowTo/Withdrawal-Keys",
to: "/how-to/update-withdrawal-keys",
},
{
from: "/HowTo/Doppelganger-Detection",
to: "/how-to/enable-doppelganger-detection",
},
{
from: "/HowTo/Migrate-Database",
to: "/how-to/migrate-database",
},
{
from: "/HowTo/Prevent-Slashing",
to: "/how-to/prevent-slashing",
},
{
from: "/Concepts/ArchitectureOverview",
to: "/concepts/architecture",
Expand All @@ -403,13 +423,6 @@ const config = {
to: "/reference/cli",
},
],
createRedirects(existingPath) {
if (existingPath.includes("/how-to")) {
// Redirect from /HowTo/X to /how-to/X
return [existingPath.replace("/how-to", "/HowTo")];
}
return undefined; // Return a falsy value: no redirect created
},
},
],
],
Expand Down

1 comment on commit 23e895a

@vercel
Copy link

@vercel vercel bot commented on 23e895a May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

doc-teku – ./

doc-teku-infura-web.vercel.app
docs.teku.consensys.net
doc-teku-git-main-infura-web.vercel.app

Please sign in to comment.