From 886ed9f80854f98daf81b28ecf745c059444c5fd Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Mon, 7 Jul 2025 11:46:39 +0200 Subject: [PATCH 1/2] 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 From bdf6ad8bb78d11d53eff0846907bcd658712314c Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Mon, 7 Jul 2025 13:14:27 +0200 Subject: [PATCH 2/2] Alternative approach for redirects --- docs/.vitepress/config.mts | 101 +------------------------------------ public/_redirects | 97 +++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 99 deletions(-) create mode 100644 public/_redirects diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ad508ad..68b28e7 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -9,6 +9,7 @@ export default defineConfig({ math: true }, srcExclude: ["tools/**"], + publicDir: 'public', themeConfig: { // https://vitepress.dev/reference/default-theme-config logo: { @@ -355,103 +356,5 @@ 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 diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..943928a --- /dev/null +++ b/public/_redirects @@ -0,0 +1,97 @@ +# Redirect Lins from the old doc +# Root and general pages +##/faq /faq 301 +/community/blog /about/resources/community 301 +/community/use-cases /about/use-cases 301 +/community/projects /about/resources/community 301 + +# Computing section +/computing /devhub/compute-resources/functions 301 +/computing/confidential /devhub/compute-resources/confidential-instances/01-confidential-instance-introduction 301 +/computing/confidential/encrypted-disk /devhub/compute-resources/confidential-instances/03-confidential-instance-create-encrypted-disk 301 +/computing/confidential/instance /devhub/compute-resources/confidential-instances/04-confidential-instance-deploy 301 +/computing/confidential/requirements /devhub/compute-resources/confidential-instances/02-confidential-instance-requirements 301 +/computing/confidential/troubleshooting /devhub/compute-resources/confidential-instances/05-confidential-instance-troubleshooting 301 +/computing/custom_domain/setup /devhub/deploying-and-hosting/custom-domains/setup 301 +/computing/gpu /devhub/compute-resources/gpu-instances 301 +/computing/runtimes /devhub/compute-resources/functions 301 +/computing/runtimes/custom /devhub/compute-resources/functions/advanced/custom-builds 301 +/computing/volumes/immutable /devhub/building-applications/data-storage/types-of-storage/immutable-volume 301 +/computing/volumes/persistent /devhub/building-applications/data-storage/types-of-storage/persistent-storage 301 + +# Guides +/guides/testing_microvms /devhub/compute-resources/functions/advanced/test-programs 301 +/guides/update_a_program /devhub/compute-resources/functions/advanced/update-programs 301 +/guides/python/advanced /devhub/compute-resources/functions/advanced/custom-builds/python/advanced/features 301 +/guides/python/dependency_volume /devhub/compute-resources/functions/advanced/custom-builds/python/advanced/dependency-volumes 301 +/guides/python/getting_started /devhub/compute-resources/functions/advanced/custom-builds/python/getting-started 301 +/guides/rust/rust_microvm /devhub/compute-resources/functions/advanced/custom-builds/rust 301 + +# Libraries +/libraries/networks /devhub/api-reference/rest 301 +/libraries/python-sdk /devhub/sdks-and-tools/python-sdk 301 +/libraries/python-sdk/accounts /devhub/sdks-and-tools/python-sdk/accounts 301 +/libraries/python-sdk/error /devhub/sdks-and-tools/python-sdk/error 301 +/libraries/python-sdk/forget /devhub/sdks-and-tools/python-sdk/forget 301 +/libraries/python-sdk/aggregates/create /devhub/sdks-and-tools/python-sdk/aggregates/create 301 +/libraries/python-sdk/aggregates/delegate /devhub/sdks-and-tools/python-sdk/aggregates/delegate 301 +/libraries/python-sdk/aggregates/query /devhub/sdks-and-tools/python-sdk/aggregates/query 301 +/libraries/python-sdk/posts/create /devhub/sdks-and-tools/python-sdk/posts/create 301 +/libraries/python-sdk/posts/query /devhub/sdks-and-tools/python-sdk/posts/query 301 + +# TypeScript SDK +/libraries/typescript-sdk /devhub/sdks-and-tools/typescript-sdk 301 +/libraries/typescript-sdk/accounts /devhub/sdks-and-tools/typescript-sdk/accounts 301 +/libraries/typescript-sdk/aggregates /devhub/sdks-and-tools/typescript-sdk/aggregates 301 +/libraries/typescript-sdk/instances /devhub/sdks-and-tools/typescript-sdk/instances 301 +/libraries/typescript-sdk/posts /devhub/sdks-and-tools/typescript-sdk/posts 301 +/libraries/typescript-sdk/troubleshooting /devhub/sdks-and-tools/typescript-sdk/troubleshooting 301 + +# Nodes +/nodes/compute /nodes/compute/introduction 301 +/nodes/compute/releases /nodes/resources/releases 301 +/nodes/compute/troubleshooting /nodes/resources/management/troubleshooting 301 +/nodes/compute/advanced/enable-confidential /nodes/compute/advanced/confidential 301 +/nodes/compute/advanced/enable-gpu /nodes/compute/advanced/gpu 301 +/nodes/compute/advanced/enable-payg /nodes/compute/advanced/pay-as-you-go 301 +/nodes/compute/advanced/local-testing /nodes/compute/advanced/local-testing 301 +/nodes/compute/installation/configure-caddy /nodes/compute/installation 301 +/nodes/compute/installation/debian-12 /nodes/compute/installation/debian-12 301 +/nodes/compute/installation/ubuntu-22.04 /nodes/compute/installation/ubuntu-22.04 301 +/nodes/compute/installation/ubuntu-24.04 /nodes/compute/installation/ubuntu-24.04 301 +/nodes/core /nodes/core/introduction 301 +/nodes/core/backups /nodes/resources/management/backups 301 +/nodes/reliability /nodes/resources/management 301 +/nodes/reliability/metrics /nodes/resources/metrics 301 +/nodes/reliability/monitoring /nodes/resources/management/monitoring 301 +/nodes/reliability/rewards /nodes/resources/rewards 301 +/nodes/reliability/scores /nodes/resources/scoring 301 +/nodes/reliability/troubleshooting /nodes/resources/management/troubleshooting 301 + +# Protocol +/protocol/chains /about/network/supported-blockchains 301 +/protocol/messages /about/network/message-types 301 +/protocol/permissions /devhub/building-applications/messaging/permissions 301 +/protocol/usage /about/how-it-works 301 +/protocol/object-types/aggregates /devhub/building-applications/messaging/object-types/aggregates 301 +/protocol/object-types/posts /devhub/building-applications/messaging/object-types/posts 301 +/protocol/object-types/programs /devhub/building-applications/messaging/object-types/programs 301 +/protocol/object-types/storage /devhub/building-applications/messaging/object-types/store 301 + +# Tools +/tools/aleph-account /nodes/staking 301 +/tools/ipfs-pinning /devhub/storage/ipfs-pinning 301 +/tools/vrf /devhub/tools/vrf 301 +/tools/web3-hosting /devhub/deploying-and-hosting/web-hosting 301 +/tools/aleph-client /devhub/sdks-and-tools/aleph-cli 301 +/tools/aleph-client/troubleshooting /devhub/sdks-and-tools/aleph-cli/troubleshooting 301 +/tools/aleph-client/usage /devhub/sdks-and-tools/aleph-cli/usage 301 +/tools/indexer /devhub/building-applications/blockchain-data/indexing 301 +/tools/indexer/evm-indexer /devhub/building-applications/blockchain-data/indexing/evm-indexer 301 +/tools/indexer/indexer-generator /devhub/building-applications/blockchain-data/indexing/solana-idl-indexer 301 +/tools/webconsole /devhub/compute-resources/functions/webconsole 301 +/tools/webconsole/upload /devhub/compute-resources/functions/webconsole/upload 301 +/tools/webconsole/write_your_code /devhub/compute-resources/functions/webconsole/write_your_code 301 +/tools/webconsole/languages/nodejs /devhub/compute-resources/functions/webconsole/languages/nodejs 301 +/tools/webconsole/languages/other /devhub/compute-resources/functions/webconsole/languages/other 301 +/tools/webconsole/languages/python /devhub/compute-resources/functions/webconsole/languages/python 301 \ No newline at end of file