Skip to content

Commit c2886b2

Browse files
authoredJan 25, 2024
docs: Re-organise for new docs layout (#653)
* docs: Re-organise for new docs layout * Update paths
1 parent 8ce3edc commit c2886b2

File tree

10 files changed

+164
-127
lines changed

10 files changed

+164
-127
lines changed
 

‎docs/config.json

+164-46
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/TanStack/tanstack.com/main/tanstack-docs-config.schema.json",
23
"docSearch": {
34
"appId": "",
45
"indexName": "",
56
"apiKey": ""
67
},
78
"menu": [
89
{
9-
"label": "Guide",
10+
"label": "Getting Started",
1011
"children": [
11-
{ "label": "Introduction", "to": "guide/introduction" },
12-
{ "label": "Installation", "to": "guide/installation" }
13-
]
14-
},
15-
{
16-
"label": "Adapters",
17-
"children": [
18-
{ "label": "React Virtual", "to": "adapters/react-virtual" },
19-
{ "label": "Solid Virtual", "to": "adapters/solid-virtual" },
20-
{ "label": "Svelte Virtual", "to": "adapters/svelte-virtual" },
21-
{ "label": "Vue Virtual", "to": "adapters/vue-virtual" }
12+
{ "label": "Introduction", "to": "introduction" },
13+
{ "label": "Installation", "to": "installation" }
2214
]
2315
},
2416
{
@@ -27,49 +19,175 @@
2719
{ "label": "Virtualizer", "to": "api/virtualizer" },
2820
{ "label": "VirtualItem", "to": "api/virtual-item" }
2921
]
30-
},
22+
}
23+
],
24+
"frameworkMenus": [
3125
{
32-
"label": "React Examples",
33-
"children": [
34-
{ "to": "examples/react/fixed", "label": "Fixed" },
35-
{ "to": "examples/react/variable", "label": "Variable" },
36-
{ "to": "examples/react/dynamic", "label": "Dynamic" },
37-
{ "to": "examples/react/padding", "label": "Padding" },
38-
{ "to": "examples/react/sticky", "label": "Sticky" },
39-
{ "to": "examples/react/infinite-scroll", "label": "Infinite Scroll" },
40-
{ "to": "examples/react/smooth-scroll", "label": "Smooth Scroll" },
41-
{ "to": "examples/react/table", "label": "Table" },
42-
{ "to": "examples/react/window", "label": "Window" }
26+
"framework": "react",
27+
"menuItems": [
28+
{
29+
"label": "Getting Started",
30+
"children": [
31+
{
32+
"label": "React Virtual",
33+
"to": "framework/react/react-virtual"
34+
}
35+
]
36+
},
37+
{
38+
"label": "Examples",
39+
"children": [
40+
{
41+
"to": "framework/react/examples/fixed",
42+
"label": "Fixed"
43+
},
44+
{
45+
"to": "framework/react/examples/variable",
46+
"label": "Variable"
47+
},
48+
{
49+
"to": "framework/react/examples/dynamic",
50+
"label": "Dynamic"
51+
},
52+
{
53+
"to": "framework/react/examples/padding",
54+
"label": "Padding"
55+
},
56+
{
57+
"to": "framework/react/examples/sticky",
58+
"label": "Sticky"
59+
},
60+
{
61+
"to": "framework/react/examples/infinite-scroll",
62+
"label": "Infinite Scroll"
63+
},
64+
{
65+
"to": "framework/react/examples/smooth-scroll",
66+
"label": "Smooth Scroll"
67+
},
68+
{
69+
"to": "framework/react/examples/table",
70+
"label": "Table"
71+
},
72+
{
73+
"to": "framework/react/examples/window",
74+
"label": "Window"
75+
}
76+
]
77+
}
4378
]
4479
},
4580
{
46-
"label": "Solid Examples",
47-
"children": [{ "to": "#", "label": "Coming Soon!" }]
81+
"framework": "solid",
82+
"menuItems": [
83+
{
84+
"label": "Getting Started",
85+
"children": [
86+
{ "label": "Solid Virtual", "to": "framework/solid/solid-virtual" }
87+
]
88+
}
89+
]
4890
},
4991
{
50-
"label": "Svelte Examples",
51-
"children": [
52-
{ "to": "examples/svelte/fixed", "label": "Fixed" },
53-
{ "to": "examples/svelte/variable", "label": "Variable" },
54-
{ "to": "examples/svelte/dynamic", "label": "Dynamic" },
55-
{ "to": "examples/svelte/sticky", "label": "Sticky" },
56-
{ "to": "examples/svelte/infinite-scroll", "label": "Infinite Scroll" },
57-
{ "to": "examples/svelte/smooth-scroll", "label": "Smooth Scroll" },
58-
{ "to": "examples/svelte/table", "label": "Table" }
92+
"framework": "svelte",
93+
"menuItems": [
94+
{
95+
"label": "Getting Started",
96+
"children": [
97+
{
98+
"label": "Svelte Virtual",
99+
"to": "framework/svelte/svelte-virtual"
100+
}
101+
]
102+
},
103+
{
104+
"label": "Examples",
105+
"children": [
106+
{
107+
"to": "framework/svelte/examples/fixed",
108+
"label": "Fixed"
109+
},
110+
{
111+
"to": "framework/svelte/examples/variable",
112+
"label": "Variable"
113+
},
114+
{
115+
"to": "framework/svelte/examples/dynamic",
116+
"label": "Dynamic"
117+
},
118+
{
119+
"to": "framework/svelte/examples/sticky",
120+
"label": "Sticky"
121+
},
122+
{
123+
"to": "framework/svelte/examples/infinite-scroll",
124+
"label": "Infinite Scroll"
125+
},
126+
{
127+
"to": "framework/svelte/examples/smooth-scroll",
128+
"label": "Smooth Scroll"
129+
},
130+
{
131+
"to": "framework/svelte/examples/table",
132+
"label": "Table"
133+
}
134+
]
135+
}
59136
]
60137
},
61138
{
62-
"label": "Vue Examples",
63-
"children": [
64-
{ "to": "examples/vue/fixed", "label": "Fixed" },
65-
{ "to": "examples/vue/variable", "label": "Variable" },
66-
{ "to": "examples/vue/dynamic", "label": "Dynamic" },
67-
{ "to": "examples/vue/sticky", "label": "Sticky" },
68-
{ "to": "examples/vue/infinite-scroll", "label": "Infinite Scroll" },
69-
{ "to": "examples/vue/smooth-scroll", "label": "Smooth Scroll" },
70-
{ "to": "examples/vue/table", "label": "Table" },
71-
{ "to": "examples/vue/padding", "label": "Padding" },
72-
{ "to": "examples/vue/scroll-padding", "label": "Scroll Padding" }
139+
"framework": "vue",
140+
"menuItems": [
141+
{
142+
"label": "Getting Started",
143+
"children": [
144+
{
145+
"label": "Vue Virtual",
146+
"to": "framework/vue/vue-virtual"
147+
}
148+
]
149+
},
150+
{
151+
"label": "Examples",
152+
"children": [
153+
{
154+
"to": "framework/vue/examples/fixed",
155+
"label": "Fixed"
156+
},
157+
{
158+
"to": "framework/vue/examples/variable",
159+
"label": "Variable"
160+
},
161+
{
162+
"to": "framework/vue/examples/dynamic",
163+
"label": "Dynamic"
164+
},
165+
{
166+
"to": "framework/vue/examples/sticky",
167+
"label": "Sticky"
168+
},
169+
{
170+
"to": "framework/vue/examples/infinite-scroll",
171+
"label": "Infinite Scroll"
172+
},
173+
{
174+
"to": "framework/vue/examples/smooth-scroll",
175+
"label": "Smooth Scroll"
176+
},
177+
{
178+
"to": "framework/vue/examples/table",
179+
"label": "Table"
180+
},
181+
{
182+
"to": "framework/vue/examples/padding",
183+
"label": "Padding"
184+
},
185+
{
186+
"to": "framework/vue/examples/scroll-padding",
187+
"label": "Scroll Padding"
188+
}
189+
]
190+
}
73191
]
74192
}
75193
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎docs/public/images/bytes-logo.png

-91.8 KB
Binary file not shown.

‎docs/src/components/BytesForm.js

-49
This file was deleted.

‎docs/src/components/useBytesSubmit.js

-32
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.