From f4b32e23948480453985887be8511002d6189c12 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Fri, 15 Mar 2024 11:25:44 -0500 Subject: [PATCH] [Stellar Merge] Add redirects and external URLs for a new "Reference" section (#772) * add migration URLs to networks and resource limits pages * change meeting notes to external links * change meetings navbar item to external link * add a comment to the redirects file * add migration redirects and link URLs * disable the "blog" feature now that it's migrated --- docs/reference/networks.mdx | 10 ++++++++++ docs/reference/resource-limits-fees.mdx | 10 ++++++++++ docs/releases.mdx | 10 ++++++++++ docusaurus.config.js | 12 ++---------- nginx/includes/redirects.conf | 17 +++++++++++------ sidebars.js | 2 +- 6 files changed, 44 insertions(+), 17 deletions(-) diff --git a/docs/reference/networks.mdx b/docs/reference/networks.mdx index 3052b8b0..bcf65d1d 100644 --- a/docs/reference/networks.mdx +++ b/docs/reference/networks.mdx @@ -2,8 +2,18 @@ sidebar_position: 30 title: Networks description: The shared Soroban test networks. +sidebar_custom_props: + migration: + href: https://developers.stellar.org/docs/reference/networks + label: Networks --- +:::danger These are not the droids you're looking for + +This page has been migrated to the Stellar Developers documentation. Please [click here](https://developers.stellar.org/docs/reference/networks) for the most up-to-date information + +::: + Read more about the different networks in the [Networks section](https://developers.stellar.org/docs/fundamentals-and-concepts/networks) in the Stellar docs. | | Mainnet | Testnet | Futurenet | diff --git a/docs/reference/resource-limits-fees.mdx b/docs/reference/resource-limits-fees.mdx index 705ec35d..559b2c41 100644 --- a/docs/reference/resource-limits-fees.mdx +++ b/docs/reference/resource-limits-fees.mdx @@ -1,8 +1,18 @@ --- sidebar_position: 35 title: Resource Limits & Fees +sidebar_custom_props: + migration: + href: https://developers.stellar.org/docs/reference/resource-limits-fees + label: Resource Limits & Fees --- +:::danger These are not the droids you're looking for + +This page has been migrated to the Stellar Developers documentation. Please [click here](https://developers.stellar.org/docs/reference/resource-limits-fees) for the most up-to-date information + +::: + ## Resource Limits Soroban introduces smart contracts, marking the most transformative upgrade to the Stellar network to date. To maintain network performance, the ecosystem has decided to upgrade the network in a phased approach where network capacity is increased gradually over time. See [this blog post](https://stellar.org/blog/developers/the-stellar-network-s-phased-rollout-of-smart-contracts-the-road-to-mainnet) for more details and [discord](https://discord.com/invite/zVYdY3ktTn) for current status. diff --git a/docs/releases.mdx b/docs/releases.mdx index 2ee84e51..29106638 100644 --- a/docs/releases.mdx +++ b/docs/releases.mdx @@ -2,8 +2,18 @@ sidebar_position: 90 title: Releases description: Soroban software releases and changelogs. +sidebar_custom_props: + migration: + href: https://developers.stellar.org/docs/reference/software-versions + label: Releases --- +:::danger These are not the droids you're looking for + +This page has been migrated to the Stellar Developers documentation. Please [click here](https://developers.stellar.org/docs/reference/software-versions) for the most up-to-date information + +::: + We're releasing early versions of Soroban because we believe it's important to share the development process, and we want Stellar ecosystem developers and smart contract developers from other ecosystems to have a chance to experiment and provide feedback. :::caution diff --git a/docusaurus.config.js b/docusaurus.config.js index 4b52fd70..d8c3974f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -54,15 +54,7 @@ const config = { "classic", /** @type {import('@docusaurus/preset-classic').Options} */ ({ - blog: { - path: 'meeting-notes', - blogTitle: 'Meeting Notes', - blogDescription: 'Notes and recordings from the Soroban protocol & developers meetings', - blogSidebarTitle: 'All meetings', - blogSidebarCount: 'ALL', - postsPerPage: 'ALL', - routeBasePath: 'meetings', - }, + blog: false, docs: { showLastUpdateTime: true, showLastUpdateAuthor: true, @@ -125,7 +117,7 @@ const config = { position: 'left' }, { - to: '/meetings', + href: 'https://developers.stellar.org/meetings', label: 'Meetings', position: 'right', }, diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index 14aff7bc..707c6264 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -1,5 +1,5 @@ rewrite "^/docs/category/examples$" "/docs/tutorials" permanent; -rewrite "^/docs/getting-started/run-rpc$" "/docs/reference/rpc" permanent; +rewrite "^/docs/getting-started/run-rpc$" "https://developers.stellar.org/network/soroban-rpc/admin-guide" permanent; rewrite "^/docs/category/tutorials$" "/docs/tutorials" permanent; rewrite "^/docs/tutorials/deploy-to-futurenet$" "/docs/getting-started/deploy-to-testnet" permanent; rewrite "^/fundamentals-and-concepts/faq$" "/docs/faq" permanent; @@ -23,18 +23,18 @@ rewrite "^/sorobanathon" "/" permanent; rewrite "^/docs/reference/interfaces/token-interface" "/docs/tokens/token-interface" 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; -rewrite "^/docs/reference/releases$" "/docs/releases" permanent; +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$" "/docs/faq" permanent; -rewrite "^/docs/reference/testnet$" "/docs/reference/networks" 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/(basic|advanced)-tutorials(/.*)$" "/docs/tutorials$2" permanent; rewrite "^/docs/fundamentals-and-concepts(/.*)$" "https://developers.stellar.org/docs/learn/smart-contract-internals$1" permanent; -rewrite "^/docs/notes" "/meetings" permanent; +rewrite "^/docs/notes" "https://developers.stellar.org/meetings" permanent; ##### BEGIN merge redirects # developer tools and SDK rewrite "^/docs/developer-tools" "https://developers.stellar.org/docs/tools/developer-tools" permanent; @@ -51,8 +51,13 @@ rewrite "^/docs/reference/data-providers" "https://developers.stellar.org/docs/t 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; +# 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/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; +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; diff --git a/sidebars.js b/sidebars.js index cec6e3d6..6b1500a7 100644 --- a/sidebars.js +++ b/sidebars.js @@ -7,7 +7,7 @@ module.exports = { { type: 'link', label: 'Meeting Notes', - href: '/meetings', + href: 'https://developers.stellar.org/meetings', } ] };