From fcd2d3703281671f3283e487a674de3292a205ca Mon Sep 17 00:00:00 2001 From: Jeroen van den Hout Date: Wed, 24 Jan 2024 13:29:42 +0100 Subject: [PATCH] Fix sidebar config --- docs/build/getting-started/sidebars.ts | 4 +- docs/build/isc/v1.0.0-rc.6/sidebars.js | 154 +------------------------ versionedConfig.js | 54 ++++----- 3 files changed, 30 insertions(+), 182 deletions(-) diff --git a/docs/build/getting-started/sidebars.ts b/docs/build/getting-started/sidebars.ts index d120794cce1..339f739c0d0 100644 --- a/docs/build/getting-started/sidebars.ts +++ b/docs/build/getting-started/sidebars.ts @@ -23,12 +23,12 @@ module.exports = { { type: 'link', label: 'WASP CLI', - href: '/isc/how-tos/manage-chains/wasp-cli', + href: '/wasp/manage-chains/wasp-cli', }, { label: 'Schema Tool', type: 'link', - href: '/isc/how-tos/wasm/introduction', + href: '/schema/introduction', }, { label: 'Explorer', diff --git a/docs/build/isc/v1.0.0-rc.6/sidebars.js b/docs/build/isc/v1.0.0-rc.6/sidebars.js index cf2ca16d4e2..2bb046806dc 100644 --- a/docs/build/isc/v1.0.0-rc.6/sidebars.js +++ b/docs/build/isc/v1.0.0-rc.6/sidebars.js @@ -14,7 +14,7 @@ module.exports = { //tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], // But you can create a sidebar manually - EVMSidebar: [ + ISCSidebar: [ { type: 'doc', label: 'Introduction', @@ -168,158 +168,6 @@ module.exports = { }, ], }, - { - type: 'category', - label: 'Test Smart Contracts with Solo', - items: [ - { - type: 'doc', - label: 'What is Solo?', - id: 'how-tos/solo/what-is-solo', - }, - { - type: 'doc', - label: 'First Example', - id: 'how-tos/solo/first-example', - }, - { - type: 'doc', - label: 'The L1 Ledger', - id: 'how-tos/solo/the-l1-ledger', - }, - { - type: 'doc', - label: 'Deploy a Smart Contract', - id: 'how-tos/solo/deploying-sc', - }, - { - type: 'doc', - label: 'Invoke a Smart Contract', - id: 'how-tos/solo/invoking-sc', - }, - { - type: 'doc', - label: 'Call a View', - id: 'how-tos/solo/view-sc', - }, - { - type: 'doc', - label: 'Error Handling', - id: 'how-tos/solo/error-handling', - }, - { - type: 'doc', - label: 'Accounts', - id: 'how-tos/solo/the-l2-ledger', - }, - { - type: 'doc', - label: 'Test Smart Contracts', - id: 'how-tos/solo/test', - }, - { - type: 'doc', - label: 'Example Tests', - id: 'how-tos/solo/examples', - }, - { - type: 'doc', - label: 'Colored Tokens and Time Locks', - id: 'how-tos/solo/timelock', - }, - ], - }, - { - type: 'category', - label: 'Wasm VM (experimental)', - items: [ - { - type: 'doc', - label: 'The Schema Tool', - id: 'how-tos/wasm/introduction', - }, - { - type: 'doc', - label: 'Create a Schema', - id: 'how-tos/wasm/usage', - }, - { - type: 'doc', - label: 'Define the State', - id: 'how-tos/wasm/state', - }, - { - type: 'doc', - label: 'Use Structured Data Types', - id: 'how-tos/wasm/structs', - }, - { - type: 'doc', - label: 'Generate Type Definitions', - id: 'how-tos/wasm/typedefs', - }, - { - type: 'doc', - label: 'Trigger Events', - id: 'how-tos/wasm/events', - }, - { - type: 'doc', - label: 'Define Functions', - id: 'how-tos/wasm/funcs', - }, - { - type: 'doc', - label: 'Limit Access', - id: 'how-tos/wasm/access', - }, - { - type: 'doc', - label: 'Define Function Parameters', - id: 'how-tos/wasm/params', - }, - { - type: 'doc', - label: 'Define Function Results', - id: 'how-tos/wasm/results', - }, - { - type: 'doc', - label: 'Use Thunk Functions', - id: 'how-tos/wasm/thunks', - }, - { - type: 'doc', - label: 'Use View-Only Functions', - id: 'how-tos/wasm/views', - }, - { - type: 'doc', - label: 'Initialize a Smart Contract', - id: 'how-tos/wasm/init', - }, - { - type: 'doc', - label: 'Transfer Tokens', - id: 'how-tos/wasm/transfers', - }, - { - type: 'doc', - label: 'Add Function Descriptors', - id: 'how-tos/wasm/funcdesc', - }, - { - type: 'doc', - label: 'Call Functions', - id: 'how-tos/wasm/call', - }, - { - type: 'doc', - label: 'Post Asynchronous Requests', - id: 'how-tos/wasm/post', - }, - ], - }, ], }, { diff --git a/versionedConfig.js b/versionedConfig.js index 995bbf32465..5afed38681f 100644 --- a/versionedConfig.js +++ b/versionedConfig.js @@ -23,7 +23,7 @@ exports.buildPluginsConfig = [ }, { id: 'isc', - label: 'ISC', + label: 'Smart contracts', description: 'Create smart contracts.', icon: 'SmartContracts', subsection: 'build-layer-2', @@ -34,32 +34,32 @@ exports.buildPluginsConfig = [ }, ], }, - // { - // id: 'wasp-evm', - // label: 'EVM', - // description: 'Create EVM smart contracts.', - // icon: 'SmartContracts', - // subsection: 'build-layer-2', - // versions: [ - // { - // label: 'v1.0.0-rc.6', - // badges: ['Shimmer'], - // }, - // ], - // }, - // { - // id: 'wasp-cli', - // label: 'Wasp CLI', - // description: 'Create custom smart contract chains.', - // icon: 'SmartContracts', - // subsection: 'build-layer-2', - // versions: [ - // { - // label: 'v1.0.0-rc.6', - // badges: ['Shimmer'], - // }, - // ], - // }, + { + id: 'solo', + label: 'Solo', + description: 'Test ISC smart contracts.', + icon: 'SmartContracts', + subsection: 'build-layer-2', + versions: [ + { + label: 'v1.0.0-rc.6', + badges: ['Shimmer'], + }, + ], + }, + { + id: 'schema', + label: 'Schema tool', + description: 'Generate WASM smart contracts.', + icon: 'SmartContracts', + subsection: 'build-layer-2', + versions: [ + { + label: 'v1.0.0-rc.6', + badges: ['Shimmer'], + }, + ], + }, // { // id: 'wasp-wasm', // label: 'WASM (Experimental)',