Skip to content

Commit

Permalink
Merge pull request #607 from input-output-hk/filip/feat/redirects
Browse files Browse the repository at this point in the history
filip(feat): abstract redirects to separate file for easier management
  • Loading branch information
fstoqnov-iohk authored May 2, 2024
2 parents c69a0e3 + f920f65 commit e367f15
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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 [
Expand Down
294 changes: 294 additions & 0 deletions redirects.js
Original file line number Diff line number Diff line change
@@ -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',
},
]

1 comment on commit e367f15

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Deploy preview for cardano-documentation ready!

✅ Preview
https://cardano-documentation-3j07b4ll1-iog.vercel.app
https://cardano-documentation.vercel.app

Built with commit e367f15.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.