From 1625df60b60e60331b7cc78ce28c2c597ef2c0be Mon Sep 17 00:00:00 2001 From: Aliaksandr Bahdanau Date: Thu, 3 Oct 2024 12:59:40 +0300 Subject: [PATCH] feat: reorganize learn sidebar --- sidebars/develop.js | 1 + sidebars/learn.js | 79 ++++++++++++++++----------------------------- 2 files changed, 28 insertions(+), 52 deletions(-) diff --git a/sidebars/develop.js b/sidebars/develop.js index 961c9ee23b..c83320718f 100644 --- a/sidebars/develop.js +++ b/sidebars/develop.js @@ -200,6 +200,7 @@ module.exports = [ type: 'category', label: 'Network Protocols', items: [ + 'learn/networking/low-level-adnl', // TODO: MERGE ADNL 'develop/network/adnl-tcp', 'develop/network/adnl-udp', 'develop/network/dht', diff --git a/sidebars/learn.js b/sidebars/learn.js index ae3c6b2bde..c59d3876f4 100644 --- a/sidebars/learn.js +++ b/sidebars/learn.js @@ -2,7 +2,7 @@ * @type {import('@docusaurus/plugin-content-docs').SidebarConfig} */ module.exports = [ - 'learn/introduction', + 'learn/introduction', // TODO: Change to 'learn/glossary', { 'type': 'html', @@ -10,54 +10,45 @@ module.exports = [ }, { 'type': 'html', - 'value': ' Introduction ', + 'value': ' Dive into TON ', }, + 'learn/introduction', { type: 'category', - label: 'What is Blockchain?', + label: 'TON Blockchain', items: [ + 'learn/overviews/ton-blockchain', + 'learn/overviews/addresses', + 'learn/overviews/cells', { type: 'category', - label: 'TON Blockchain', + label: 'TON Networking', items: [ - 'learn/overviews/ton-blockchain', - 'learn/overviews/addresses', - 'learn/overviews/cells', { - type: 'category', - label: 'TON Networking', - items: [ - { - type: 'doc', - label: 'Overview', - id: 'learn/networking/overview', - }, - { - type: 'category', - label: 'ADNL Protocol', - items: [ - { - type: 'doc', - label: 'Overview', - id: 'learn/networking/adnl', - }, - 'learn/networking/low-level-adnl', - ], - }, - 'learn/networking/overlay-subnetworks', - 'learn/networking/rldp', - 'learn/networking/ton-dht', - ], + type: 'doc', + label: 'Overview', + id: 'learn/networking/overview', }, - 'learn/overviews/blockchain-comparison', { - type: 'link', - label: 'Open-Source and Decentralization in TON', - href: 'https://defi.org/ton/', + type: 'doc', + label: 'ADNL Protocol', + id: 'learn/networking/adnl', }, + 'learn/networking/overlay-subnetworks', + 'learn/networking/rldp', + 'learn/networking/ton-dht', + ], }, - ] + 'develop/blockchain/shards', + 'develop/blockchain/sharding-lifecycle', + 'learn/overviews/blockchain-comparison', + { + type: 'link', + label: 'Open-Source and Decentralization in TON', + href: 'https://defi.org/ton/', + }, + ], }, { type: 'category', @@ -69,21 +60,5 @@ module.exports = [ 'develop/ethereum-to-ton/blockchain-services', ] }, - { - 'type': 'html', - 'value': '
', - }, - { - 'type': 'html', - 'value': ' Dive into TON ', - }, - { - type: 'category', - label: 'Blockchain Fundamentals', - items: [ - 'develop/blockchain/shards', - 'develop/blockchain/sharding-lifecycle', - ], - }, 'learn/academy/academy-overview', ];