Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

build: include or fix the most common 404 pages from yesterday #702

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 8 additions & 20 deletions nginx/includes/redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ rewrite "^/docs/getting-started/connect-freighter-wallet$" "/docs/reference/frei
rewrite "^/docs/common-interfaces/token$" "/docs/tokens/token-interface" permanent;
rewrite "^/docs/how-to-guides/tokens$" "/docs/tutorials/tokens" permanent;
# BEGIN re-structure redirects
rewrite "^/docs/interfaces/token-interface" "/docs/tokens/token-interface" permanent;
rewrite "^/sorobanathon" "/" permanent;
rewrite "^/docs/reference/interfaces/token-interface" "/docs/tokens/token-interface" permanent;
rewrite "^/methods/getTransaction$" "/api/methods/getTransaction" permanent;
rewrite "^/docs/category/getting-started$" "/docs/getting-started/setup" permanent;
rewrite "^/docs/tutorials/stellar-asset-contract" "/docs/tokens/stellar-asset-contract" permanent;
rewrite "^/docs/category/migrating-from-evm$" "/docs/migrate/evm/introduction-to-solidity-and-rust" permanent;
rewrite "^/docs/fundamentals-and-concepts/migrating-from-evm(/.*)$" "/docs/migrate/evm$1" permanent;
Expand All @@ -32,23 +35,8 @@ rewrite "^/docs/reference/testnet$" "/docs/reference/networks" permanent;
rewrite "^/docs/reference/sdks/(rust|assemblyscript-sdk)$" "/docs/reference/sdks/write-contracts" permanent;
rewrite "^/docs/reference/sdks/(js|python|ios-sdk|flutter-sdk|php-sdk|elixir|java)$" "/docs/reference/sdks/interact-with-contracts" permanent;
rewrite "^/docs/fundamentals-and-concepts/(built-in-types|custom-types|fully-typed-contracts)$" "/docs/soroban-internals/types/$1" permanent;
rewrite "^/docs/fundamentals-and-concepts/invoking-contracts-with-transactions$" "/docs/soroban-internals/contract-interactions/stellar-transactions" permanent;
rewrite "^/docs/fundamentals-and-concepts/invoking-contracts-with-transactions$" "/docs/soroban-internals/contract-interactions/stellar-transaction" permanent;
rewrite "^/docs/soroban-internals/contract-interactions/stellar-transactions$" "/docs/soroban-internals/contract-interactions/stellar-transaction" permanent;
rewrite "^/docs/fundamentals-and-concepts/interacting-with-contracts$" "/docs/soroban-internals/contract-interactions" permanent;
rewrite "^/docs/(basic|advanced)-tutorials/(.*)$" "/docs/tutorials/$2" permanent;
rewrite "^/docs/fundamentals-and-concepts/(.*)$" "/docs/soroban-internals/$1" permanent;
# Nothing has been done here yet, but I'm noting what changes will need to be addressed
# [x] "fundamentals-and-concepts" is now "soroban-internals"
# [x] all of the "basic-tutorials" are now in "tutorials"
# [x] all of the "advanced-tutorials" are now in "tutorials"
# [x] The new way of listing tutorials now replaces "/docs/category/tutorials" with "/docs/tutorials"
# [x] "reference/interfaces/token-interface" has moved to "tokens/token-interface" (this'll be a big one!)
# [x] "tutorials/stellar-asset-contract" has moved to "tokens/stellar-asset-contract"
# [x] "soroban-internals/migrate-from-evm" has moved to "migrate/evm"
# [x] "releases" has moved up one level ("/docs/{reference,resources}/releases" -> "/docs/releases")
# [x] "faq" has moved up one level ("/docs/{reference,resources}/faq" -> "/docs/faq")
# [x] "resources/testnet" has been moved to "resources/networks"
# [x] various SDK pages have been collapsed into "resources/sdks/{write-contracts,interact-with-contracts}"
# [x] "soroban-internals/{built-in-types,custom-types,fully-typed-contracts}" have been moved into an umbrella "soroban-internals/types" directory
# [x] "soroban-internals/invoking-contracts-with-transactions.mdx" has moved to "soroban-internals/contract-interactions/stellar-transactions.mdx"
# [x] other misc shuffling of content and pages into "soroban-internals/contract-interactions/"
# [x] "soroban-internals/interacting-with-contracts.mdx" moved to "soroban-internals/contract-interactions/index.mdx"
rewrite "^/docs/(basic|advanced)-tutorials(/.*)$" "/docs/tutorials/$2" permanent;
rewrite "^/docs/fundamentals-and-concepts(/.*)$" "/docs/soroban-internals/$1" permanent;