Skip to content

Commit a218531

Browse files
committed
Introduce cookbook (updated init version)
Signed-off-by: Ekaterina Mekhnetsova <mekkatya@gmail.com>
1 parent 771eb48 commit a218531

File tree

3 files changed

+158
-1
lines changed

3 files changed

+158
-1
lines changed

.vitepress/config.mts

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,156 @@ function nav(): DefaultTheme.NavItem[] {
3535
link: '/reference/torii-endpoints',
3636
activeMatch: '/reference/',
3737
},
38+
{
39+
text: 'Cookbook',
40+
link: '/cookbook/',
41+
activeMatch: '/cookbook/',
42+
},
43+
]
44+
}
45+
46+
function sidebarCookbook(): DefaultTheme.SidebarItem[] {
47+
return [
48+
{
49+
text: 'Assets',
50+
collapsed: true,
51+
items: [
52+
{
53+
text: 'Work with Numeric Assets',
54+
},
55+
{
56+
text: 'Work with Store Assets',
57+
},
58+
{
59+
text: 'Transfer Assets Between Accounts',
60+
},
61+
{
62+
text: 'Mint More of a Mintable Asset',
63+
},
64+
{
65+
text: 'Work with Non-Mintable Assets',
66+
},
67+
{
68+
text: 'Create Asset-backed Tokens',
69+
},
70+
{
71+
text: 'Create Non-Fungible Tokens (NFTs)',
72+
},
73+
],
74+
},
75+
{
76+
text: 'Access Control',
77+
collapsed: true,
78+
items: [
79+
{
80+
text: 'Permissions',
81+
},
82+
{
83+
text: 'Roles',
84+
},
85+
],
86+
},
87+
{
88+
text: 'Metadata',
89+
collapsed: true,
90+
items: [
91+
{
92+
text: 'Set',
93+
},
94+
{
95+
text: 'Remove',
96+
},
97+
{
98+
text: 'Access',
99+
},
100+
],
101+
},
102+
{
103+
text: 'Events and Filters',
104+
collapsed: true,
105+
items: [
106+
{ text: 'Pipeline Events' },
107+
{ text: 'Data Events' },
108+
{ text: 'Trigger Events' },
109+
{ text: 'Advanced Filtering' },
110+
],
111+
},
112+
{
113+
text: 'Queries',
114+
collapsed: true,
115+
items: [
116+
{text: 'Use queries'},
117+
{text: 'Filter query results'},
118+
{text: 'Use Lazy Pagination'},
119+
{text: 'Query Connected Peers'},
120+
],
121+
},
122+
{
123+
text: 'Triggers',
124+
collapsed: true,
125+
items: [
126+
{
127+
text: 'Data Triggers',
128+
},
129+
{
130+
text: 'Time Triggers',
131+
},
132+
{
133+
text: 'By-call Triggers',
134+
},
135+
],
136+
},
137+
{
138+
text: 'Executor',
139+
collapsed: true,
140+
items: [
141+
{
142+
text: 'Write Executor',
143+
},
144+
{
145+
text: 'Update Executor',
146+
}
147+
],
148+
},
149+
{
150+
text: 'Block Stream',
151+
collapsed: true,
152+
items: [
153+
{
154+
text: 'Subscribe to Block Stream',
155+
},
156+
{
157+
text: 'View output',
158+
},
159+
],
160+
},
161+
{
162+
text: 'Telemetry',
163+
collapsed: true,
164+
items: [
165+
{
166+
text: 'Check Status',
167+
},
168+
{
169+
text: 'Work with Metrics',
170+
},
171+
],
172+
},
173+
{
174+
text: 'Miscellaneous',
175+
collapsed: true,
176+
items: [
177+
{
178+
text: 'Transactions with Smartcontracts',
179+
},
180+
{
181+
text: 'Multi-Signature Transactions (MSTs)',
182+
},
183+
{
184+
text: 'Expressions',
185+
},
186+
],
187+
},
38188
]
39189
}
40190

@@ -481,6 +631,7 @@ export default defineConfig({
481631
sidebar: {
482632
'/guide/': sidebarGuide(),
483633
'/reference/': sidebarAPI(),
634+
'/cookbook/': sidebarCookbook(),
484635
},
485636

486637
search: {

src/cookbook/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Cookbook
2+
3+
TODO

src/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ features:
2323
title: Reference
2424
details: Consult reference documentation for extensive information about available functionality
2525
link: /reference/
26-
# - title: Cookbook # (TBA)
26+
- icon: 📓
27+
title: Cookbook
28+
details: Find code samples and example showcasing Iroha functionality
29+
link: /cookbook/

0 commit comments

Comments
 (0)