From f362c1506f8fc56b91e09459c93342c3f587537c Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 12 Dec 2022 08:13:10 -0700 Subject: [PATCH] add redirects from url-list.csv --- next.config.js | 4 +- redirects.js | 243 ++++++++++++++++++++++++++++++++++++++++++++++++- url-list.csv | 6 +- 3 files changed, 244 insertions(+), 9 deletions(-) diff --git a/next.config.js b/next.config.js index 19d31a9cc8..e4c09dd39c 100644 --- a/next.config.js +++ b/next.config.js @@ -17,6 +17,6 @@ module.exports = withMDX({ // Append the default value with md extensions pageExtensions: ['ts', 'tsx', 'md', 'mdx'], async redirects() { - return redirectsList - }, + return redirectsList; + } }); diff --git a/redirects.js b/redirects.js index e91dc06e26..83ecd6fbc2 100644 --- a/redirects.js +++ b/redirects.js @@ -1,11 +1,246 @@ const redirects = [ { - source: '/about', - destination: '/', - permanent: true, + source: '/docs/getting-started/dev-mode', + destination: '/docs/developers/geth-developer/dev-mode', + permanent: true + }, + { + source: '/docs/install-and-build/installing-geth', + destination: '/docs/getting-started/installing-geth', + permanent: true + }, + { + source: '/docs/install-and-build/backup-restore', + destination: '/docs/getting-started/backup-restore', + permanent: true + }, + { + source: '/docs/interface/command-line-options', + destination: '/docs/fundamentals/command-line-options', + permanent: true + }, + { + source: '/docs/interface/pruning', + destination: '/docs/fundamentals/pruning', + permanent: true + }, + { + source: '/docs/interface/consensus-clients', + destination: '/docs/getting-started/consensus-client', + permanent: true + }, + { + source: '/docs/interface/peer-to-peer', + destination: '/docs/fundamentals/peer-to-peer', + permanent: true + }, + { + source: '/docs/interface/les', + destination: '/docs/fundamentals/les', + permanent: true + }, + { + source: '/docs/interface/managing-your-accounts', + destination: '/docs/fundamentals/account-management', + permanent: true + }, + { + source: '/docs/interface/javascript-console', + destination: '/docs/interacting-with-geth/javascript-console', + permanent: true + }, + { + source: '/docs/interface/private-network', + destination: '/docs/developers/geth-developer/private-network', + permanent: true + }, + { + source: '/docs/interface/mining', + destination: '/docs/fundamentals/mining', + permanent: true + }, + { + source: '/docs/interface/metrics', + destination: '/docs/monitoring/metrics', + permanent: true + }, + { + source: '/docs/dapp/native', + destination: '/docs/developers/dapp-developer/native', + permanent: true + }, + { + source: '/docs/dapp/tracing', + destination: '/docs/developers/evm-tracing', + permanent: true + }, + { + source: '/docs/dapp/custom-tracer', + destination: '/docs/developers/evm-tracing/custom-tracer', + permanent: true + }, + { + source: '/docs/dapp/builtin-tracers', + destination: '/docs/developers/evm-tracing/built-in-tracers', + permanent: true + }, + { + source: '/docs/dapp/native-accounts', + destination: '/docs/developers/dapp-developer/native-accounts', + permanent: true + }, + { + source: '/docs/dapp/native-bindings', + destination: '/docs/developers/dapp-developer/native-bindings', + permanent: true + }, + { + source: '/docs/dapp/mobile', + destination: '/docs/developers/dapp-developer/mobile', + permanent: true + }, + { + source: '/docs/dapp/mobile-accounts', + destination: '/docs/developers/dapp-developer/mobile', + permanent: true + }, + { + source: '/docs/rpc/server', + destination: '/docs/interacting-with-geth/rpc', + permanent: true + }, + { + source: '/docs/rpc/pubsub', + destination: '/docs/interacting-with-geth/rpc/pubsub', + permanent: true + }, + { + source: '/docs/rpc/batch', + destination: '/docs/interacting-with-geth/batch', + permanent: true + }, + { + source: '/docs/rpc/graphql', + destination: '/docs/interacting-with-geth/rpc/graphql', + permanent: true + }, + { + source: '/docs/rpc/ns-admin', + destination: '/docs/interacting-with-geth/rpc/ns-admin', + permanent: true + }, + { + source: '/docs/rpc/ns-clique', + destination: '/docs/interacting-with-geth/rpc/ns-clique', + permanent: true + }, + { + source: '/docs/rpc/ns-debug', + destination: '/docs/interacting-with-geth/rpc/ns-debug', + permanent: true + }, + { + source: '/docs/rpc/ns-eth', + destination: '/docs/interacting-with-geth/rpc/ns-eth', + permanent: true + }, + { + source: '/docs/rpc/ns-les', + destination: '/docs/interacting-with-geth/rpc/ns-les', + permanent: true + }, + { + source: '/docs/rpc/ns-miner', + destination: '/docs/interacting-with-geth/rpc/ns-miner', + permanent: true + }, + { + source: '/docs/rpc/ns-net', + destination: '/docs/interacting-with-geth/rpc/ns-net', + permanent: true + }, + { + source: '/docs/rpc/ns-personal', + destination: '/docs/interacting-with-geth/rpc/ns-personal', + permanent: true + }, + { + source: '/docs/rpc/ns-txpool', + destination: '/docs/interacting-with-geth/rpc/ns-txpool', + permanent: true + }, + { + source: '/docs/rpc/objects', + destination: '/docs/interacting-with-geth/rpc/objects', + permanent: true + }, + { + source: '/docs/developers/dev-guide', + destination: '/docs/developers/geth-developer/dev-guide', + permanent: true + }, + { + source: '/docs/developers/code-review-guidelines', + destination: '/docs/developers/geth-developer/code-review-guidelines', + permanent: true + }, + { + source: '/docs/developers/issue-handling-workflow', + destination: '/docs/developers/geth-developer/issue-handling-workflow', + permanent: true + }, + { + source: '/docs/developers/dns-discovery-setup', + destination: '/docs/developers/geth-developer/dns-discovery-setup', + permanent: true + }, + { + source: '/docs/clef/introduction', + destination: '/docs/tools/clef/introduction', + permanent: true + }, + { + source: '/docs/clef/tutorial', + destination: '/docs/tools/clef/tutorial', + permanent: true + }, + { + source: '/docs/clef/cliquesigning', + destination: '/docs/tools/clef/clique-signing', + permanent: true + }, + { + source: '/docs/clef/rules', + destination: '/docs/tools/clef/rules', + permanent: true + }, + { + source: '/docs/clef/setup', + destination: '/docs/tools/clef/setup', + permanent: true + }, + { + source: '/docs/clef/apis', + destination: '/docs/tools/clef/apis', + permanent: true + }, + { + source: '/docs/clef/datatypes', + destination: '/docs/tools/clef/datatypes', + permanent: true + }, + { + source: '/docs/interface/sync-mode', + destination: '/docs/fundamentals/sync-modes', + permanent: true + }, + { + source: '/docs/interface/hardware', + destination: '/docs/getting-started/hardware-requirements', + permanent: true } ]; module.exports = { redirects -} \ No newline at end of file +}; diff --git a/url-list.csv b/url-list.csv index 517882c64d..5ada9306bd 100644 --- a/url-list.csv +++ b/url-list.csv @@ -52,6 +52,6 @@ https://geth.ethereum.org/docs/clef/apis,https://geth.ethereum.org/docs/tools/cl https://geth.ethereum.org/docs/clef/datatypes,https://geth.ethereum.org/docs/tools/clef/datatypes,,n/a https://geth.ethereum.org/docs/interface/sync-modes,https://geth.ethereum.org/docs/fundamentals/sync-modes,,n/a https://geth.ethereum.org/docs/interface/hardware,https://geth.ethereum.org/docs/getting-started/hardware-requirements,, -https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json,https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json,,must be served at original URL -https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json.minisig,https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json.minisig,,must be served at original URL -https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.md,https://geth.ethereum.org/docs/developers/geth-developer/disclosures,,moved to /docs and renamed +https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json,https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json,"Cant add redirect since this is a external URL (GitHub, not geth.ethereum.org)",must be served at original URL +https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json.minisig,https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.json.minisig,"Cant add redirect since this is a external URL (GitHub, not geth.ethereum.org)",must be served at original URL +https://github.com/ethereum/go-ethereum/tree/gh-pages/docs/_vulnerabilities/vulnerabilities.md,https://geth.ethereum.org/docs/developers/geth-developer/disclosures,"Cant add redirect since this is a external URL (GitHub, not geth.ethereum.org)",moved to /docs and renamed \ No newline at end of file