diff --git a/docs/guides/README.mdx b/docs/guides/README.mdx index c4bb13ea..35a13f13 100644 --- a/docs/guides/README.mdx +++ b/docs/guides/README.mdx @@ -2,6 +2,16 @@ title: How-To Guides description: here you will find really useful guides hide_table_of_contents: true +sidebar_custom_props: + migration: + href: https://developers.stellar.org/docs/smart-contracts/guides + label: How-To Guides --- +:::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/smart-contracts/guides) for the most up-to-date information + +::: + The page lists all guides we have available for Soroban. Simply put, a "guide" is a short, bite-sized example that details how to accomplish a specific task. These guides are focused on a single topic, and are limited in scope. diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index 707c6264..6bc9a4ef 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -63,3 +63,5 @@ rewrite "^/docs/category/soroban-internals$" "https://developers.stellar.org/doc rewrite "^/docs/soroban-internals/contract-interactions$" "https://developers.stellar.org/docs/learn/smart-contract-internals/contract-interactions/overview" permanent; rewrite "^/docs/soroban-internals(.*)$" "https://developers.stellar.org/docs/learn/smart-contract-internals$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; diff --git a/src/sidebar-generator.js b/src/sidebar-generator.js index 0fe8a08d..f311c086 100644 --- a/src/sidebar-generator.js +++ b/src/sidebar-generator.js @@ -4,6 +4,13 @@ const path = require('path') const migrationLinksRecursive = (sidebarItems) => { const result = sidebarItems.map((sidebarItem) => { if (sidebarItem.type === 'category') { + if (sidebarItem.label === 'How-To Guides') { + return { + type: 'link', + href: sidebarItem.customProps.migration.href, + label: sidebarItem.customProps.migration.label, + } + } return {...sidebarItem, items: migrationLinksRecursive(sidebarItem.items)} }