From 4cafb34e73460d3874c8d1d9610f037d9900ba6d Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Fri, 21 Jun 2024 10:09:13 -0500 Subject: [PATCH 1/3] update redirects to `/docs/data` instead of `/network` --- nginx/includes/redirects.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index 8e126b8a..d171898c 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -1,5 +1,5 @@ rewrite "^/docs/category/examples$" "https://developers.stellar.org/docs/smart-contracts/example-contracts" permanent; -rewrite "^/docs/getting-started/run-rpc$" "https://developers.stellar.org/network/soroban-rpc/admin-guide" permanent; +rewrite "^/docs/getting-started/run-rpc$" "https://developers.stellar.org/docs/data/rpc/admin-guide" permanent; rewrite "^/docs/category/tutorials$" "https://developers.stellar.org/docs/smart-contracts/example-contracts" permanent; rewrite "^/docs/tutorials/deploy-to-futurenet$" "https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet" permanent; rewrite "^/fundamentals-and-concepts/faq$" "https://developers.stellar.org/docs/smart-contracts/faq" permanent; @@ -48,12 +48,12 @@ rewrite "^/docs/reference/command-line$" "https://developers.stellar.org/docs/to rewrite "^/docs/reference/soroban-cli$" "https://developers.stellar.org/docs/tools/developer-tools#soroban-cli" permanent; rewrite "^/docs/reference/data-providers" "https://developers.stellar.org/docs/tools/developer-tools#block-explorers" permanent; # soroban rpc -rewrite "^/methods/getTransaction$" "https://developers.stellar.org/network/soroban-rpc/methods/getTransaction" permanent; -rewrite "^/api/incomplete-methods$" "https://developers.stellar.org/network/soroban-rpc/methods" permanent; -rewrite "^/api(.*)" "https://developers.stellar.org/network/soroban-rpc$1" permanent; +rewrite "^/methods/getTransaction$" "https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction" permanent; +rewrite "^/api/incomplete-methods$" "https://developers.stellar.org/docs/data/rpc/api-reference/methods" permanent; +rewrite "^/api(.*)" "https://developers.stellar.org/docs/data/rpc$1" permanent; # reference -rewrite "^/docs/reference/rpc$" "https://developers.stellar.org/network/soroban-rpc/admin-guide" permanent; -rewrite "^/docs/reference/rpc-list$" "https://developers.stellar.org/network/soroban-rpc/rpc-providers" permanent; +rewrite "^/docs/reference/rpc$" "https://developers.stellar.org/docs/data/rpc/admin-guide" permanent; +rewrite "^/docs/reference/rpc-list$" "https://developers.stellar.org/docs/data/rpc/rpc-providers" permanent; rewrite "^/docs/reference/networks$" "https://developers.stellar.org/docs/reference/networks" permanent; rewrite "^/docs/reference/resource-limits-fees$" "https://developers.stellar.org/docs/reference/resource-limits-fees" permanent; rewrite "^/docs/reference/releases(.*)$" "https://developers.stellar.org/docs/reference/software-versions$1" permanent; From 293ec70e6336f219a02295519e1702f97b548f83 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Fri, 21 Jun 2024 10:33:05 -0500 Subject: [PATCH 2/3] update old smart contract internals redirects --- nginx/includes/redirects.conf | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index d171898c..2b7843ad 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -4,14 +4,14 @@ rewrite "^/docs/category/tutorials$" "https://developers.stellar.org/docs/smart- rewrite "^/docs/tutorials/deploy-to-futurenet$" "https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet" permanent; rewrite "^/fundamentals-and-concepts/faq$" "https://developers.stellar.org/docs/smart-contracts/faq" permanent; rewrite "^/docs/examples/events$" "https://developers.stellar.org/docs/smart-contracts/example-contracts/events" permanent; -rewrite "^/docs/learn/rust-dialect$" "https://developers.stellar.org/docs/learn/smart-contract-internals/rust-dialect" permanent; +rewrite "^/docs/learn/rust-dialect$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/rust-dialect" permanent; rewrite "^/docs/advanced-tutorials/liquidity-pool-b6f$" "https://developers.stellar.org/docs/smart-contracts/example-contracts/liquidity-pool" permanent; -rewrite "^/docs(/category)?/learn$" "https://developers.stellar.org/docs/learn/smart-contract-internals" permanent; -rewrite "^/docs/category/fundamentals-and-concepts$" "https://developers.stellar.org/docs/learn/smart-contract-internals" permanent; +rewrite "^/docs(/category)?/learn$" "https://developers.stellar.org/docs/learn" permanent; +rewrite "^/docs/category/fundamentals-and-concepts$" "https://developers.stellar.org/docs/learn/fundamentals" permanent; rewrite "^/docs/built-in-contracts/token$" "https://developers.stellar.org/docs/smart-contracts/tokens/stellar-asset-contract" permanent; rewrite "^/docs/getting-started/deploy-to-a-local-network$" "https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet" permanent; rewrite "^/docs/getting-started/deploy-to-futurenet$" "https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet" permanent; -rewrite "^/docs/tutorials/testing$" "https://developers.stellar.org/docs/learn/smart-contract-internals/debugging" permanent; +rewrite "^/docs/tutorials/testing$" "https://developers.stellar.org/docs/learn/encyclopedia/errors-and-debugging/debugging" permanent; rewrite "^/docs/category/how-to-guides$" "https://developers.stellar.org/docs/smart-contracts/guides" permanent; rewrite "^/docs/getting-started/connect-freighter-wallet$" "https://developers.stellar.org/docs/smart-contracts/guides/freighter" permanent; rewrite "^/docs/common-interfaces/token$" "https://developers.stellar.org/docs/smart-contracts/tokens/token-interface" permanent; @@ -28,12 +28,12 @@ rewrite "^/docs/fundamentals-and-concepts/migrating-from-evm(/.*)$" "https://dev rewrite "^/docs/reference/releases$" "https://developers.stellar.org/docs/reference/software-versions" permanent; rewrite "^/docs/fundamentals-and-concepts/faq$" "https://developers.stellar.org/docs/smart-contracts/faq" permanent; rewrite "^/docs/reference/testnet$" "https://developers.stellar.org/docs/reference/networks" permanent; -rewrite "^/docs/fundamentals-and-concepts/(built-in-types|custom-types|fully-typed-contracts)$" "https://developers.stellar.org/docs/learn/smart-contract-internals/types/$1" permanent; -rewrite "^/docs/fundamentals-and-concepts/invoking-contracts-with-transactions$" "https://developers.stellar.org/docs/learn/smart-contract-internals/contract-interactions/stellar-transaction" permanent; -rewrite "^/docs/soroban-internals/contract-interactions/stellar-transactions$" "https://developers.stellar.org/docs/learn/smart-contract-internals/contract-interactions/stellar-transaction" permanent; -rewrite "^/docs/fundamentals-and-concepts/interacting-with-contracts$" "https://developers.stellar.org/docs/learn/smart-contract-internals/contract-interactions" permanent; +rewrite "^/docs/fundamentals-and-concepts/(built-in-types|custom-types|fully-typed-contracts)$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/types/$1" permanent; +rewrite "^/docs/fundamentals-and-concepts/invoking-contracts-with-transactions$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions/stellar-transaction" permanent; +rewrite "^/docs/soroban-internals/contract-interactions/stellar-transactions$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions/stellar-transaction" permanent; +rewrite "^/docs/fundamentals-and-concepts/interacting-with-contracts$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions" permanent; rewrite "^/docs/(basic|advanced)-tutorials(/.*)$" "https://developers.stellar.org/docs/smart-contracts/example-contracts$2" permanent; -rewrite "^/docs/fundamentals-and-concepts(/.*)$" "https://developers.stellar.org/docs/learn/smart-contract-internals$1" permanent; +rewrite "^/docs/fundamentals-and-concepts(/.*)$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development$1" permanent; rewrite "^/docs/notes" "https://developers.stellar.org/meetings" permanent; ##### BEGIN merge redirects # developer tools and SDK @@ -59,10 +59,10 @@ rewrite "^/docs/reference/resource-limits-fees$" "https://developers.stellar.org rewrite "^/docs/reference/releases(.*)$" "https://developers.stellar.org/docs/reference/software-versions$1" permanent; rewrite "^/meetings(.*)$" "https://developers.stellar.org/meetings$1" permanent; # learn -rewrite "^/docs/category/soroban-internals$" "https://developers.stellar.org/docs/learn/smart-contract-internals" permanent; -rewrite "^/docs/soroban-internals/contract-interactions$" "https://developers.stellar.org/docs/learn/smart-contract-internals/contract-interactions/overview" permanent; +rewrite "^/docs/category/soroban-internals$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development" permanent; +rewrite "^/docs/soroban-internals/contract-interactions$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions/overview" permanent; rewrite "^/docs/soroban-internals/fees-and-metering$" "https://developers.stellar.org/docs/learn/fundamentals/fees-resource-limits-metering" permanent; -rewrite "^/docs/soroban-internals(.*)$" "https://developers.stellar.org/docs/learn/smart-contract-internals$1" permanent; +rewrite "^/docs/soroban-internals(.*)$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development$1" permanent; rewrite "^/docs/migrate(.*)$" "https://developers.stellar.org/docs/learn/migrate$1" permanent; # smart contracts rewrite "^/docs/guides(.*)$" "https://developers.stellar.org/docs/smart-contracts/guides$1" permanent; @@ -71,7 +71,7 @@ rewrite "^/docs/getting-started(.*)$" "https://developers.stellar.org/docs/smart rewrite "^/docs/category/tokens$" "https://developers.stellar.org/docs/smart-contracts/tokens" permanent; rewrite "^/docs/tokens(.*)$" "https://developers.stellar.org/docs/smart-contracts/tokens$1" permanent; rewrite "^/docs/reference/freighter$" "https://developers.stellar.org/docs/smart-contracts/guides/freighter" permanent; -rewrite "^/docs/faq$" "https://developers.stellar.org/docs/learn/smart-contract-internals/faq" permanent; +rewrite "^/docs/faq$" "https://developers.stellar.org" permanent; # dapps challenge rewrite "^/dapps/guides/wallets(.*)$" "https://developers.stellar.org/docs/smart-contracts/guides/freighter/integrate-freighter-react" permanent; rewrite "^/dapps/guides/smart-contracts(.*)" "https://developers.stellar.org/docs/learn/interactive/dapps/challenges/challenge-0-crowdfund" permanent; From ac0022ac825f259a0d11ad47b3f9bfcc4574c7e7 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Fri, 21 Jun 2024 10:41:25 -0500 Subject: [PATCH 3/3] fix redirects to (no-longer-existing) faq page --- nginx/includes/redirects.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index 2b7843ad..b8a65eb3 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -2,7 +2,7 @@ rewrite "^/docs/category/examples$" "https://developers.stellar.org/docs/smart-c rewrite "^/docs/getting-started/run-rpc$" "https://developers.stellar.org/docs/data/rpc/admin-guide" permanent; rewrite "^/docs/category/tutorials$" "https://developers.stellar.org/docs/smart-contracts/example-contracts" permanent; rewrite "^/docs/tutorials/deploy-to-futurenet$" "https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet" permanent; -rewrite "^/fundamentals-and-concepts/faq$" "https://developers.stellar.org/docs/smart-contracts/faq" permanent; +rewrite "^/fundamentals-and-concepts/faq$" "https://developers.stellar.org" permanent; rewrite "^/docs/examples/events$" "https://developers.stellar.org/docs/smart-contracts/example-contracts/events" permanent; rewrite "^/docs/learn/rust-dialect$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/rust-dialect" permanent; rewrite "^/docs/advanced-tutorials/liquidity-pool-b6f$" "https://developers.stellar.org/docs/smart-contracts/example-contracts/liquidity-pool" permanent; @@ -26,7 +26,7 @@ rewrite "^/docs/tutorials/stellar-asset-contract" "https://developers.stellar.or rewrite "^/docs/category/migrating-from-evm$" "https://developers.stellar.org/docs/learn/migrate/evm" permanent; rewrite "^/docs/fundamentals-and-concepts/migrating-from-evm(/.*)$" "https://developers.stellar.org/docs/learn/migrate/evm$1" permanent; rewrite "^/docs/reference/releases$" "https://developers.stellar.org/docs/reference/software-versions" permanent; -rewrite "^/docs/fundamentals-and-concepts/faq$" "https://developers.stellar.org/docs/smart-contracts/faq" permanent; +rewrite "^/docs/fundamentals-and-concepts/faq$" "https://developers.stellar.org" permanent; rewrite "^/docs/reference/testnet$" "https://developers.stellar.org/docs/reference/networks" permanent; rewrite "^/docs/fundamentals-and-concepts/(built-in-types|custom-types|fully-typed-contracts)$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/types/$1" permanent; rewrite "^/docs/fundamentals-and-concepts/invoking-contracts-with-transactions$" "https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions/stellar-transaction" permanent; @@ -47,7 +47,7 @@ rewrite "^/reference/soroban-cli$" "https://developers.stellar.org/docs/tools/de rewrite "^/docs/reference/command-line$" "https://developers.stellar.org/docs/tools/developer-tools#soroban-cli" permanent; rewrite "^/docs/reference/soroban-cli$" "https://developers.stellar.org/docs/tools/developer-tools#soroban-cli" permanent; rewrite "^/docs/reference/data-providers" "https://developers.stellar.org/docs/tools/developer-tools#block-explorers" permanent; -# soroban rpc +# rpc rewrite "^/methods/getTransaction$" "https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction" permanent; rewrite "^/api/incomplete-methods$" "https://developers.stellar.org/docs/data/rpc/api-reference/methods" permanent; rewrite "^/api(.*)" "https://developers.stellar.org/docs/data/rpc$1" permanent;