diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 3caec91e..2660addd 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,6 +1,7 @@ import { themes as prismThemes } from 'prism-react-renderer' import type { Config } from '@docusaurus/types' import type * as Preset from '@docusaurus/preset-classic' +import { redirects } from './redirects' const config: Config = { title: 'Cardano Docs', @@ -33,16 +34,7 @@ const config: Config = { [ '@docusaurus/plugin-client-redirects', { - redirects: [ - { - to: '/cardano-testnets/tools/faucet', - from: '/cardano-testnet/tools/faucet', - }, - { - to: '/release-notes/comp-matrix', - from: '/tools/comp-matrix', - }, - ], + redirects: redirects, createRedirects(existingPath) { if (existingPath.includes('/cardano-testnet')) { return [ diff --git a/redirects.js b/redirects.js new file mode 100644 index 00000000..1c84ef37 --- /dev/null +++ b/redirects.js @@ -0,0 +1,294 @@ +export const redirects = [ + { + to: '/cardano-testnets/tools/faucet', + from: '/cardano-testnet/tools/faucet', + }, + { + to: '/release-notes/comp-matrix', + from: '/tools/comp-matrix', + }, + { + to: '/cardano-testnets/', + from: '/cardano-testnet/overview/', + }, + { + to: '/cardano-testnets/', + from: '/cardano-testnet/about/testnet-introduction/', + }, + { + to: '/cardano-testnets/getting-started', + from: '/cardano-testnet/getting-started/', + }, + { + to: '/cardano-testnets/local-testnet', + from: '/cardano-testnet/local-testnet/', + }, + { + to: '/cardano-testnets/resources', + from: '/cardano-testnet/resources/links/', + }, + { + to: '/cardano-testnets/support-feedback', + from: '/cardano-testnet/support-feedback/', + }, + { + to: 'https://developers.cardano.org/docs/get-started/installing-cardano-node', + from: '/development-guidelines/installing-the-cardano-node/', + }, + { + to: 'https://cardano-course.gitbook.io/cardano-course/video-lessons', + from: '/development-guidelines/cardano-node-course', + }, + { + to: 'https://tests.cardano.intersectmbo.org/', + from: '/development-guidelines/node-tests/', + }, + { + to: 'https://docs.cardano.org/operating-a-stake-pool/monitoring', + from: '/development-guidelines/node-monitoring/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-cli?tab=readme-ov-file#overview-of-the-cardano-cli-repository', + from: '/development-guidelines/use-cli/', + }, + { + to: '/development-guidelines/transaction-tutorials/', + from: '/development-guidelines/transaction-tutorials/introduction/', + }, + { + to: '/operating-a-stake-pool/', + from: '/operating-a-stake-pool/stake-pool-operations-101/', + }, + { + to: '/operating-a-stake-pool/', + from: '/operating-a-stake-pool/creating-a-stake-pool/', + }, + { + to: '/operating-a-stake-pool/maintenance', + from: '/operating-a-stake-pool/public-stake-pools/', + }, + { + to: '/operating-a-stake-pool/metadata-management', + from: '/operating-a-stake-pool/smash/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-node?tab=readme-ov-file#overview-of-the-cardano-node-repository', + from: '/cardano-components/cardano-node/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-graphql#overview', + from: '/cardano-components/cardano-graphql/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-rosetta?tab=readme-ov-file#cardano-rosetta', + from: '/cardano-components/cardano-rosetta/about-cardano-rosetta/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-rosetta/tree/master/docs', + from: '/cardano-components/cardano-rosetta/learn/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-rosetta/tree/master/docs', + from: '/cardano-components/cardano-rosetta/get-started-rosetta/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-rosetta/tree/master/docs', + from: '/cardano-components/cardano-rosetta/api-calls-rosetta/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-ledger#cardano-ledger', + from: '/cardano-components/cardano-ledger-specs/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-db-sync#cardano-db-sync', + from: '/cardano-components/cardano-db-sync/about-db-sync/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-db-sync?tab=readme-ov-file#architecture', + from: '/cardano-components/cardano-db-sync/db-sync-components/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-db-sync?tab=readme-ov-file#installation', + from: '/cardano-components/cardano-db-sync/db-sync-set-up/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-db-sync/tree/master/doc', + from: '/cardano-components/cardano-db-sync/best-practices/', + }, + { + to: 'https://github.com/input-output-hk/data-analytics-bigquery/wiki', + from: '/cardano-components/cardano-db-sync/big-query/', + }, + { + to: 'https://github.com/cardano-foundation/cardano-wallet#overview', + from: '/cardano-components/cardano-wallet/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-db-sync/blob/master/doc/smash.md', + from: '/cardano-components/smash/', + }, + { + to: 'https://github.com/IntersectMBO/ouroboros-network#ouroboros-network', + from: '/cardano-components/ouroboros-network/', + }, + { + to: 'https://github.com/IntersectMBO/cardano-node/blob/master/cardano-tracer/docs/cardano-rtview.md', + from: '/cardano-components/cardano-rtview/', + }, + { + to: 'https://github.com/Emurgo/cardano-serialization-lib?tab=readme-ov-file#cardano-serialization-lib', + from: '/cardano-components/cardano-serialization-lib/', + }, + { + to: 'https://github.com/input-output-hk/daedalus', + from: '/cardano-components/daedalus-wallet/', + }, + { + to: 'https://beta.explorer.cardano.org/en/', + from: '/cardano-components/cardano-explorer/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/basics/introduction-sidechains/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/basics/ouroboros-description/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/basics/block-explorer/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/sidechain-toolkit/introduction/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/sidechain-toolkit/mainchain-plutus-scripts/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/sidechain-toolkit/chain-follower/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/sidechain-toolkit/committee-rotation/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/create-and-fund-accounts/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/metamask/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/deploy-smart-contracts/setup-development/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/deploy-smart-contracts/verify-contract/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/deploy-smart-contracts/solidity-resources/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/sidechain-token/', + }, + { + to: 'https://github.com/input-output-hk/sc-evm/blob/main/TECHNICAL_SPECIFICATION_v1.1.pdf', + from: '/cardano-sidechains/proof-of-concept-evm-sidechain/transferring-tokens/', + }, + { + to: '/development-guidelines/native-tokens', + from: '/native-tokens/learn/', + }, + { + to: 'https://cardano-ledger.readthedocs.io/en/latest/explanations/min-utxo-mary.html', + from: '/native-tokens/minimum-ada-value-requirement/', + }, + { + to: 'https://developers.cardano.org/docs/native-tokens/minting', + from: '/native-tokens/getting-started/', + }, + { + to: 'https://github.com/input-output-hk/cardano-node-wiki/blob/main/docs/reference/native-tokens/03-exercises.md', + from: '/native-tokens/exercises/', + }, + { + to: 'https://cardano-ledger.readthedocs.io/en/latest/explanations/faq.html', + from: '/native-tokens/faqs/', + }, + { + to: 'https://github.com/input-output-hk/cardano-node-wiki/blob/main/docs/reference/native-tokens/04-exchange-scenarios.md', + from: '/exchange-multi-asset-management-scenarios/', + }, + { + to: 'https://cardano-ledger.readthedocs.io/en/latest/explanations/listing.html', + from: '/listing-cardano-native-assets-on-an-exchange/', + }, + { + to: '/development-guidelines/smart-contracts/plutus', + from: '/smart-contracts/plutus/learn-about-plutus/', + }, + { + to: '/development-guidelines/smart-contracts/plutus', + from: '/smart-contracts/plutus/plutus-resources/', + }, + { + to: 'https://plutus.readthedocs.io/en/latest/simple-example.html', + from: '/smart-contracts/plutus/plutus-scripts/', + }, + { + to: 'https://plutus.readthedocs.io/en/latest/index.html', + from: '/smart-contracts/plutus/dapp-development/', + }, + { + to: 'https://plutus.readthedocs.io/en/latest/index.html', + from: '/smart-contracts/plutus/plutus-use-cases/', + }, + { + to: '/learn/collateral-mechanism', + from: '/smart-contracts/plutus/collateral-mechanism/', + }, + { + to: '/learn/transaction-costs-determinism', + from: '/smart-contracts/plutus/transaction-costs-determinism/', + }, + { + to: '/development-guidelines/smart-contracts/plutus', + from: '/smart-contracts/plutus/sc-best-practices/', + }, + { + to: '/development-guidelines/smart-contracts/marlowe', + from: '/smart-contracts/marlowe/learn-about-marlowe/', + }, + { + to: '/development-guidelines/smart-contracts/aiken', + from: '/smart-contracts/aiken/learn-about-aiken/', + }, + { + to: 'https://cips.cardano.org/', + from: '/community/cips', + }, + { + to: 'https://www.essentialcardano.io/', + from: '/community/essential-cardano', + }, + { + to: 'https://cardano.stackexchange.com/', + from: '/community/cardano-stack-exchange', + }, + { + to: 'https://cardano.org/ambassadors/', + from: '/community/ambassador-program', + }, + { + to: 'https://iohk.zendesk.com/hc/en-us', + from: '/community/getting-support', + }, +]