Skip to content

Commit 7485bb3

Browse files
docs: Re-organise for new docs layout
1 parent ef5bc8e commit 7485bb3

13 files changed

+60
-180
lines changed

docs/config.json

+60-52
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/TanStack/tanstack.com/main/tanstack-docs-config.schema.json",
23
"docSearch": {
34
"appId": "FQ0DQ6MA3C",
45
"apiKey": "8264730bab8a9b7fa6a0c85761d7a3fe",
@@ -21,64 +22,71 @@
2122
"to": "quick-start"
2223
}
2324
]
24-
},
25-
{
26-
"label": "Adapters",
27-
"children": [
28-
{
29-
"label": "React",
30-
"to": "adapters/react-ranger"
31-
}
32-
]
33-
},
34-
{
35-
"label": "React Ranger",
36-
"children": [
37-
{
38-
"label": "Basic",
39-
"to": "api/react/basic"
40-
},
41-
{
42-
"label": "Custom Steps",
43-
"to": "api/react/custom-steps"
44-
},
45-
{
46-
"label": "Custom Styles",
47-
"to": "api/react/custom-styles"
48-
},
49-
{
50-
"label": "Logarithmic Interpolator",
51-
"to": "api/react/logarithmic-interpolator"
52-
},
53-
{
54-
"label": "Update on Drag",
55-
"to": "api/react/update-on-drag"
56-
}
57-
]
58-
},
25+
}
26+
],
27+
"frameworkMenus": [
5928
{
60-
"label": "React Examples",
61-
"children": [
62-
{
63-
"label": "Basic",
64-
"to": "examples/react/basic?file=src%2Fmain.tsx"
65-
},
29+
"framework": "react",
30+
"menuItems": [
6631
{
67-
"label": "Custom Steps",
68-
"to": "examples/react/custom-steps?file=src%2Fmain.tsx"
32+
"label": "Adapters",
33+
"children": [
34+
{
35+
"label": "React Ranger",
36+
"to": "framework/react/react-ranger"
37+
}
38+
]
6939
},
7040
{
71-
"label": "Custom Styles",
72-
"to": "examples/react/custom-styles?file=src%2Fmain.tsx"
41+
"label": "API Reference",
42+
"children": [
43+
{
44+
"label": "Basic",
45+
"to": "framework/react/api/basic"
46+
},
47+
{
48+
"label": "Custom Steps",
49+
"to": "framework/react/api/custom-steps"
50+
},
51+
{
52+
"label": "Custom Styles",
53+
"to": "framework/react/api/custom-styles"
54+
},
55+
{
56+
"label": "Logarithmic Interpolator",
57+
"to": "framework/react/api/logarithmic-interpolator"
58+
},
59+
{
60+
"label": "Update on Drag",
61+
"to": "framework/react/api/update-on-drag"
62+
}
63+
]
7364
},
7465
{
75-
"label": "Logarithmic Interpolator",
76-
"to": "examples/react/logarithmic-interpolator?file=src%2Fmain.tsx"
77-
},
78-
{
79-
"label": "Update on Drag",
80-
"to": "examples/react/update-on-drag?file=src%2Fmain.tsx"
81-
}
66+
"label": "Examples",
67+
"children": [
68+
{
69+
"label": "Basic",
70+
"to": "framework/react/examples/basic"
71+
},
72+
{
73+
"label": "Custom Steps",
74+
"to": "framework/react/examples/custom-steps"
75+
},
76+
{
77+
"label": "Custom Styles",
78+
"to": "framework/react/examples/custom-styles"
79+
},
80+
{
81+
"label": "Logarithmic Interpolator",
82+
"to": "framework/react/examples/logarithmic-interpolator"
83+
},
84+
{
85+
"label": "Update on Drag",
86+
"to": "framework/react/examples/update-on-drag"
87+
}
88+
]
89+
}
8290
]
8391
}
8492
]

docs/examples.mdx

-13
This file was deleted.

docs/examples/react/basic.mdx

-23
This file was deleted.

docs/examples/react/custom-steps.mdx

-23
This file was deleted.

docs/examples/react/custom-styles.mdx

-23
This file was deleted.

docs/examples/react/logarithmic-interpolator.mdx

-23
This file was deleted.

docs/examples/react/update-on-drag.mdx

-23
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)