Skip to content

Commit

Permalink
Introduce cookbook (updated init version)
Browse files Browse the repository at this point in the history
Signed-off-by: Ekaterina Mekhnetsova <[email protected]>
  • Loading branch information
outoftardis committed Nov 3, 2023
1 parent 12fc601 commit 1b2cca8
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 1 deletion.
294 changes: 294 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,299 @@ function nav(): DefaultTheme.NavItem[] {
link: '/reference/torii-endpoints',
activeMatch: '/reference/',
},
{
text: 'Cookbook',
link: '/cookbook/',
activeMatch: '/cookbook/',
},
]
}

function sidebarCookbook(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Access Control',
collapsed: true,
items: [
{
text: 'Permission Tokens',
collapsed: true,
items: [],
},
{
text: 'Roles',
collapsed: true,
items: [
{
text: 'Register a Role',
},
{
text: 'Grant a Role',
},
{
text: 'Revoke a Role',
},
],
},
{
text: 'Executors (Permission Validators)',
collapsed: true,
items: [
{
text: 'Write Executor',
},
{
text: 'Update Executor',
}
],
}
],
},
{
text: 'Accounts',
collapsed: true,
items: [
{
text: 'Register Accounts',
},
{
text: 'Unregister Accounts',
},
{
text: 'Update Account Metadata'
},
// ...
],
},
{
text: 'Assets',
collapsed: true,
items: [
{
text: 'Assets', // All Assets?
collapsed: true,
items: [
{
text: 'Register Assets',
},
{
text: 'Unregister Assets',
},
{
text: 'Transfer Assets Between Accounts',
},
],
},
{
text: 'Numeric Assets',
collapsed: true,
items: [],
},
{
text: 'Store Assets',
collapsed: true,
items: [],
},
{
text: 'Mintable Assets',
collapsed: true,
items: [
{
text: 'Mint Assets',
},
{
text: 'Mint More of a Mintable Asset',
},
{
text: 'Burn Assets',
},
],
},
{
text: 'Non-Mintable Assets',
collapsed: true,
items: [
{
text: 'Work with Non-Mintable Assets',
},
],
},
{
text: 'Tokens',
collapsed: true,
items: [
{
text: 'Create Asset-backed Tokens',
},
{
text: 'Create Non-Fungible Tokens (NFTs)',
},
],
},
],
},
{
text: 'Domains',
collapsed: true,
items: [
{
text: 'Register Domains',
},
{
text: 'Update Domain Metadata',
},
// ...
// access management for domains
],
},
{
text: 'Events and Filters',
collapsed: true,
items: [
{
text: 'Pipeline Events',
collapsed: true,
items: [],
},
{
text: 'Data Events',
collapsed: true,
items: [],
},
{
text: 'Trigger Events',
collapsed: true,
items: [],
},
{
text: 'Advanced Filtering',
collapsed: true,
items: [],
},
{
text: 'Block Stream',
collapsed: true,
items: [
{
text: 'Subscribe to Block Stream',
},
{
text: 'View output',
},
],
},
],
},
{
text: 'Instructions',
collapsed: true,
items: [
{
text: 'Use instructions',
},
{
text: 'Combine Instructions via Expressions',
},
],
},
{
text: 'Metadata',
collapsed: true,
items: [
{
text: 'Set Key Value',
},
{
text: 'Remove Key Value',
},
{
text: 'Access Metadata',
},
],
},
{
text: 'Peers',
collapsed: true,
items: [
{
text: 'Register Peers',
},
{
text: "Check Current Peer's Load",
},
{
text: 'Find the Leader Among Running Peers',
},
],
},
{
text: 'Queries',
collapsed: true,
items: [
{text: 'Use queries'},
{text: 'Filter query results'},
{text: 'Use Lazy Pagination'},
{text: 'Query Connected Peers'},
],
},
{
text: 'Telemetry',
collapsed: true,
items: [
{
text: 'Check Status',
},
{
text: 'Get Metrics',
},
{
text: 'Monitor Iroha Performance',
},
{
text: 'Check Health',
},
],
},
{
text: 'Transactions',
collapsed: true,
items: [
{
text: 'Create Transactions',
},
{
text: 'Submit Transactions',
},
{
text: 'Compile Transactions',
},
{
text: 'Use Multi-Signature Transactions',
},
],
},
{
text: 'Triggers',
collapsed: true,
items: [
{
text: 'Data Triggers',
collapsed: true,
items: [],
},
{
text: 'Time Triggers',
collapsed: true,
items: [],
},
{
text: 'By-call Triggers',
collapsed: true,
items: [],
},
],
},

]
}

Expand Down Expand Up @@ -481,6 +774,7 @@ export default defineConfig({
sidebar: {
'/guide/': sidebarGuide(),
'/reference/': sidebarAPI(),
'/cookbook/': sidebarCookbook(),
},

search: {
Expand Down
3 changes: 3 additions & 0 deletions src/cookbook/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Cookbook

TODO
5 changes: 4 additions & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ features:
title: Reference
details: Consult reference documentation for extensive information about available functionality
link: /reference/torii-endpoints
# - title: Cookbook # (TBA)
- icon: 📓
title: Cookbook
details: Find code samples and example showcasing Iroha functionality
link: /cookbook/

0 comments on commit 1b2cca8

Please sign in to comment.