From 3fefee42ea0adee718f3d3ec85e9bd7b52ccf216 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Mon, 7 Jul 2025 11:46:39 +0200 Subject: [PATCH] Set up redirect for the link from the old doc to the new pages --- docs/.vitepress/config.mts | 102 ++++++++++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index dc255b8..ad508ad 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -355,5 +355,103 @@ export default defineConfig({ socialLinks: [ { icon: 'github', link: 'https://github.com/aleph-im' } ] - } -}) + }, + + rewrites: { + // Community section -> About section + '/community/blog/': '/about/resources/community/', + '/community/use-cases/': '/about/use-cases/', + '/community/projects/': '/about/resources/community/', + + // Computing section -> DevHub/compute-resources + '/computing/': '/devhub/compute-resources/standard-instances/', + '/computing/confidential/': '/devhub/compute-resources/confidential-instances/01-confidential-instance-introduction', + '/computing/confidential/encrypted-disk/': '/devhub/compute-resources/confidential-instances/03-confidential-instance-create-encrypted-disk', + '/computing/confidential/instance/': '/devhub/compute-resources/confidential-instances/04-confidential-instance-deploy', + '/computing/confidential/requirements/': '/devhub/compute-resources/confidential-instances/02-confidential-instance-requirements', + '/computing/confidential/troubleshooting/': '/devhub/compute-resources/confidential-instances/05-confidential-instance-troubleshooting', + '/computing/custom_domain/setup/': '/devhub/deploying-and-hosting/custom-domains/setup', + '/computing/gpu/': '/devhub/compute-resources/gpu-instances/', + '/computing/runtimes/': '/devhub/compute-resources/functions/', + '/computing/runtimes/custom/': '/devhub/compute-resources/functions/advanced/custom-builds/', + '/computing/volumes/immutable/': '/devhub/building-applications/data-storage/types-of-storage/immutable-volume', + '/computing/volumes/persistent/': '/devhub/building-applications/data-storage/types-of-storage/persistent-storage', + + // Guides -> DevHub sections + '/guides/testing_microvms/': '/devhub/compute-resources/functions/advanced/test-programs', + '/guides/update_a_program/': '/devhub/compute-resources/functions/advanced/update-programs', + '/guides/python/advanced/': '/devhub/compute-resources/functions/advanced/custom-builds/python/advanced/features', + '/guides/python/dependency_volume/': '/devhub/compute-resources/functions/advanced/custom-builds/python/advanced/dependency-volumes', + '/guides/python/getting_started/': '/devhub/compute-resources/functions/advanced/custom-builds/python/getting-started/', + '/guides/rust/rust_microvm/': '/devhub/compute-resources/functions/advanced/custom-builds/rust', + + // Libraries -> DevHub/sdks-and-tools + '/libraries/networks/': '/devhub/api-reference/rest', + '/libraries/python-sdk/': '/devhub/sdks-and-tools/python-sdk/', + '/libraries/python-sdk/accounts/': '/devhub/sdks-and-tools/python-sdk/accounts', + '/libraries/python-sdk/error/': '/devhub/sdks-and-tools/python-sdk/error', + '/libraries/python-sdk/forget/': '/devhub/sdks-and-tools/python-sdk/forget', + '/libraries/python-sdk/aggregates/create/': '/devhub/sdks-and-tools/python-sdk/aggregates/create', + '/libraries/python-sdk/aggregates/delegate/': '/devhub/sdks-and-tools/python-sdk/aggregates/delegate', + '/libraries/python-sdk/aggregates/query/': '/devhub/sdks-and-tools/python-sdk/aggregates/query', + '/libraries/python-sdk/posts/create/': '/devhub/sdks-and-tools/python-sdk/posts/create', + '/libraries/python-sdk/posts/query/': '/devhub/sdks-and-tools/python-sdk/posts/query', + '/libraries/typescript-sdk/': '/devhub/sdks-and-tools/typescript-sdk/', + '/libraries/typescript-sdk/accounts/': '/devhub/sdks-and-tools/typescript-sdk/accounts', + '/libraries/typescript-sdk/aggregates/': '/devhub/sdks-and-tools/typescript-sdk/aggregates', + '/libraries/typescript-sdk/instances/': '/devhub/sdks-and-tools/typescript-sdk/instances', + '/libraries/typescript-sdk/posts/': '/devhub/sdks-and-tools/typescript-sdk/posts', + '/libraries/typescript-sdk/troubleshooting/': '/devhub/sdks-and-tools/typescript-sdk/troubleshooting', + + // Nodes section + '/nodes/compute/': '/nodes/compute/introduction/', + '/nodes/compute/releases/': '/nodes/resources/releases/', + '/nodes/compute/troubleshooting/': '/nodes/resources/management/troubleshooting/', + '/nodes/compute/advanced/enable-confidential/': '/nodes/compute/advanced/confidential/', + '/nodes/compute/advanced/enable-gpu/': '/nodes/compute/advanced/gpu/', + '/nodes/compute/advanced/enable-payg/': '/nodes/compute/advanced/pay-as-you-go/', + '/nodes/compute/advanced/local-testing/': '/nodes/compute/advanced/local-testing/', + '/nodes/compute/installation/configure-caddy/': '/nodes/compute/installation/', + '/nodes/compute/installation/debian-12/': '/nodes/compute/installation/debian-12/', + '/nodes/compute/installation/ubuntu-22.04/': '/nodes/compute/installation/ubuntu-22.04/', + '/nodes/compute/installation/ubuntu-24.04/': '/nodes/compute/installation/ubuntu-24.04/', + '/nodes/core/': '/nodes/core/introduction/', + '/nodes/core/backups/': '/nodes/resources/management/backups/', + '/nodes/reliability/': '/nodes/resources/management/', + '/nodes/reliability/metrics/': '/nodes/resources/metrics/', + '/nodes/reliability/monitoring/': '/nodes/resources/management/monitoring/', + '/nodes/reliability/rewards/': '/nodes/resources/rewards/', + '/nodes/reliability/scores/': '/nodes/resources/scoring/', + '/nodes/reliability/troubleshooting/': '/nodes/resources/management/troubleshooting/', + + // Protocol section -> About/DevHub sections + '/protocol/chains/': '/about/network/supported-blockchains/', + '/protocol/messages/': '/about/network/message-types/', + '/protocol/permissions/': '/devhub/building-applications/messaging/permissions', + '/protocol/usage/': '/about/how-it-works/', + '/protocol/object-types/aggregates/': '/devhub/building-applications/messaging/object-types/aggregates', + '/protocol/object-types/posts/': '/devhub/building-applications/messaging/object-types/posts', + '/protocol/object-types/programs/': '/devhub/building-applications/messaging/object-types/programs', + '/protocol/object-types/storage/': '/devhub/building-applications/messaging/object-types/store', + + // Tools section -> DevHub sections + '/tools/aleph-account/': '/nodes/staking/', + '/tools/ipfs-pinning/': '/devhub/storage/ipfs-pinning/', + '/tools/vrf/': '/devhub/tools/vrf/', + '/tools/web3-hosting/': '/devhub/deploying-and-hosting/web-hosting/', + '/tools/aleph-client/': '/devhub/sdks-and-tools/aleph-cli/', + '/tools/aleph-client/troubleshooting/': '/devhub/sdks-and-tools/aleph-cli/troubleshooting', + '/tools/aleph-client/usage/': '/devhub/sdks-and-tools/aleph-cli/usage', + '/tools/indexer/': '/devhub/building-applications/blockchain-data/indexing/', + '/tools/indexer/evm-indexer/': '/devhub/building-applications/blockchain-data/indexing/evm-indexer', + '/tools/indexer/indexer-generator/': '/devhub/building-applications/blockchain-data/indexing/solana-idl-indexer', + '/tools/webconsole/': '/devhub/compute-resources/functions/webconsole/', + '/tools/webconsole/upload/': '/devhub/compute-resources/functions/webconsole/upload', + '/tools/webconsole/write_your_code/': '/devhub/compute-resources/functions/webconsole/write_your_code', + '/tools/webconsole/languages/nodejs/': '/devhub/compute-resources/functions/webconsole/languages/nodejs', + '/tools/webconsole/languages/other/': '/devhub/compute-resources/functions/webconsole/languages/other', + '/tools/webconsole/languages/python/': '/devhub/compute-resources/functions/webconsole/languages/python' + } + + +}) \ No newline at end of file