Skip to content

Commit

Permalink
feat: update navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
a-bahdanau committed Oct 9, 2024
1 parent 72d7d01 commit c1469c5
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 114 deletions.
144 changes: 68 additions & 76 deletions navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,82 +33,66 @@ module.exports = {
to: '/learn/networking/overview',
label: 'TON Networking',
},
{
to: '/learn/docs',
label: 'Whitepapers',
},

],
},
// TODO: extract tutorials page!!!
// {
// type: 'dropdown',
// to: '/develop/overview',
// position: 'left',
// label: 'Get Started',
// items: [
// {
// to: '/develop/overview',
// label: 'Start with Onboarding Tutorials',
// },
// ],
// },
{
type: 'dropdown',
to: '/develop/overview',
to: 'develop/dapps',
position: 'left',
label: 'Get Started',
label: 'DApps',
items: [
{
to: '/develop/overview',
label: 'Start with Onboarding Tutorials',
},
{
to: '/develop/dapps/tutorials/jetton-minter',
label: 'Mint your Tokens',
},
{
to: '/develop/dapps/tutorials/collection-minting',
label: 'Mint your NFTs',
},
{
to: '/develop/dapps/telegram-apps/',
label: 'Build your first Mini App',
},
{
to: '/develop/dapps',
label: 'Dive into DApps Development',
label: 'Telegram Mini Apps (TMAs)',
},
],
},
{
type: 'dropdown',
to: 'develop/dapps',
position: 'left',
label: 'DApps',
items: [
{
to: 'develop/dapps/apis/sdk',
label: 'APIs and SDKs',
},
{
to: 'develop/dapps/asset-processing',
label: 'Asset Processing',
label: 'Payment Processing',
},
{
to: 'develop/dapps/asset-processing/jettons',
label: 'Jetton Processing',
},
{
to: '/develop/dapps/cookbook',
label: 'Cookbook',
to: '/develop/dapps/tutorials/jetton-minter',
label: 'Mint your Tokens',
},
{
to: '/develop/dapps/telegram-apps/',
label: 'TMA Development',
to: '/develop/dapps/tutorials/collection-minting',
label: 'Mint your NFTs',
},
{
to: '/develop/dapps/cookbook',
label: 'Cookbook',
},
],
},
{
type: 'dropdown',
to: 'develop/overview',
to: 'develop/smart-contracts/',
position: 'left',
label: 'Smart Contracts',
items: [
{
to: '/develop/smart-contracts/tutorials/wallet',
label: 'Understanding Wallets',
},
{
to: 'develop/smart-contracts',
label: 'Write Smart Contracts',
to: '/participate/wallets/contracts',
label: 'Wallets',
},
{
to: '/develop/smart-contracts/messages',
Expand All @@ -118,10 +102,6 @@ module.exports = {
to: 'develop/smart-contracts/fees',
label: 'Transaction Fees',
},
{
to: 'develop/smart-contracts/guidelines',
label: 'Best Practices for Contracts',
},
{
to: 'develop/func/overview',
label: 'FunC Development Language',
Expand All @@ -138,6 +118,10 @@ module.exports = {
to: 'learn/tvm-instructions/tvm-overview',
label: 'TON Virtual Machine (TVM)',
},
{
to: 'develop/smart-contracts/guidelines',
label: 'Best Practices for Contracts',
},
],
},
{
Expand All @@ -148,27 +132,7 @@ module.exports = {
items: [
{
to: '/participate/run-nodes/mytonctrl',
label: 'MyTonCtrl',
},
{
to: '/participate/nodes/node-types',
label: 'Node Types',
},
{
to: '/participate/run-nodes/full-node',
label: 'Full Node',
},
{
to: '/participate/run-nodes/enable-liteserver-node',
label: 'Liteserver Node',
},
{
to: '/participate/run-nodes/become-validator',
label: 'Validator Node',
},
{
to: '/participate/run-nodes/archive-node',
label: 'Archive Node',
label: 'MyTonCtrl', // TODO: refactor status
},
{
to: '/participate/run-nodes/nodes-troubleshooting',
Expand All @@ -183,12 +147,8 @@ module.exports = {
label: 'Nominator Pool',
},
{
to: '/participate/network-maintenance/vesting-contract',
label: 'Vesting Contract',
},
{
to: '/participate/run-nodes/mytonctrl-status',
label: 'MyTonCtrl Status',
to: '/participate/run-nodes/archive-node', // TODO: add article
label: 'Running Nodes',
},
{
to: '/participate/run-nodes/faq',
Expand Down Expand Up @@ -224,6 +184,38 @@ module.exports = {
},
],
},
{
type: 'dropdown',
to: '/develop/overview',
label: 'Documentation',
position: 'left',
items: [
{
to: 'develop/smart-contracts/',
label: 'Smart Contracts',
},
{
to: 'learn/tvm-instructions/tvm-overview',
label: 'TON Virtual Machine (TVM)',
},
{
to: 'participate/nodes/node-types',
label: 'Nodes'
},
{
to: 'develop/dapps/defi/coins', // TODO: add page
label: 'DApps',
},
{
to: 'learn/networking/low-level-adnl',
label: 'Networking'
},
{
to: 'learn/docs',
label: 'Whitepapers',
},
]
},
{
type: 'dropdown',
label: 'Community',
Expand Down Expand Up @@ -272,4 +264,4 @@ module.exports = {
],
},
],
}
};
66 changes: 29 additions & 37 deletions sidebars/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,26 +132,6 @@ module.exports = [
'develop/dapps/defi/ton-payments',
],
},
{
type: 'category',
label: 'APIs and SDKs',
items: [
'develop/dapps/apis/sdk',
'develop/dapps/apis/README',
'develop/dapps/apis/toncenter',
'develop/dapps/apis/adnl',
'develop/dapps/apis/api-key'
],
},
{
type: 'category',
label: 'Telegram Mini Apps',
items: [
'develop/dapps/telegram-apps/README',
'develop/dapps/telegram-apps/notcoin',
'develop/dapps/telegram-apps/grants',
]
},
{
type: 'category',
label: 'Assets',
Expand Down Expand Up @@ -218,7 +198,7 @@ module.exports = [
],
},
'participate/run-nodes/node-commands',
{
{
type: 'category',
label: 'Validation',
items: [
Expand Down Expand Up @@ -319,16 +299,6 @@ module.exports = [
'type': 'html',
'value': '<hr/>',
},
{
'type': 'html',
'value': '<span class=\'menu__link\'><b><small> Quality Assurance & Outsource</small></b></span>',
},
'develop/companies/auditors',
'develop/companies/outsource',
{
'type': 'html',
'value': '<hr/>',
},
{
'type': 'html',
'value': '<span class=\'menu__link\'><b><small> TON Whitepapers </small></b></span>',
Expand Down Expand Up @@ -362,14 +332,36 @@ module.exports = [
'type': 'html',
'value': '<hr/>',
},
{
'type': 'html',
'value': '<span class=\'menu__link\'><b><small> Quality Assurance & Outsource</small></b></span>',
},
'develop/companies/auditors',
'develop/companies/outsource',
{
'type': 'html',
'value': '<hr/>',
},
{
'type': 'html',
'value': '<span class=\'menu__link\'><b><small> Archived </small></b></span>',
},
'develop/archive/pow-givers',
'develop/archive/mining',
'develop/archive/tg-bot-integration',
'develop/archive/tg-bot-integration-py',
'develop/smart-contracts/compile/README',
'develop/smart-contracts/environment/installation',
{
type: 'category',
label: 'Archived',
link: {
type: 'generated-index',
title: 'Archive',
slug: '/develop/archive',
keywords: ['archive'],
},
items: [
'develop/archive/pow-givers',
'develop/archive/mining',
'develop/archive/tg-bot-integration',
'develop/archive/tg-bot-integration-py',
'develop/smart-contracts/compile/README',
'develop/smart-contracts/environment/installation',
]
}
];
16 changes: 15 additions & 1 deletion sidebars/guidelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ module.exports = [
},
'develop/dapps/README',
'develop/dapps/cookbook',
{
type: 'category',
label: 'APIs and SDKs',
items: [
'develop/dapps/apis/sdk',
'develop/dapps/apis/README',
'develop/dapps/apis/toncenter',
'develop/dapps/apis/adnl',
'develop/dapps/apis/api-key'
],
},
{
type: 'category',
label: 'Tutorials & Examples',
Expand Down Expand Up @@ -139,6 +150,7 @@ module.exports = [
type: 'category',
label: 'Telegram Mini Apps',
items: [
'develop/dapps/telegram-apps/README',
{
type: 'category',
label: 'Guidelines',
Expand All @@ -158,6 +170,8 @@ module.exports = [
'develop/dapps/telegram-apps/design-guidelines',
],
},
'develop/dapps/telegram-apps/notcoin',
'develop/dapps/telegram-apps/grants',
],
},
{
Expand Down Expand Up @@ -192,9 +206,9 @@ module.exports = [
items: [
'participate/run-nodes/archive-node',
'participate/run-nodes/full-node',
'participate/run-nodes/enable-liteserver-node',
'participate/run-nodes/become-validator',
'participate/network-maintenance/nominators',
'participate/run-nodes/enable-liteserver-node',
'participate/run-nodes/run-docker',
'participate/run-nodes/local-ton',
'participate/run-nodes/secure-guidelines',
Expand Down

0 comments on commit c1469c5

Please sign in to comment.