Skip to content

Commit b3e4500

Browse files
committed
Use _category_.json for categories
1 parent bf35c8c commit b3e4500

File tree

9 files changed

+31
-98
lines changed

9 files changed

+31
-98
lines changed

docs/advanced-guides/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Advanced guides",
3+
"position": 40
4+
}

docs/api/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "API reference",
3+
"position": 70
4+
}

docs/concepts/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Concepts",
3+
"position": 20
4+
}

docs/examples/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Examples",
3+
"position": 50
4+
}

docs/getting-started/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Getting started",
3+
"position": 10
4+
}

docs/guides/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Guides",
3+
"position": 30
4+
}

docs/manifest-reference.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
slug: /manifest
33
sidebar_label: Manifest reference
4+
sidebar_position: 75
45
---
56

67
# Manifest

docs/publishing/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Publishing",
3+
"position": 60
4+
}

sidebars.js

+2-98
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,8 @@
11
module.exports = {
22
docs: [
33
{
4-
type: "doc",
5-
id: "introduction",
6-
},
7-
{
8-
type: "category",
9-
label: "Getting started",
10-
collapsed: false,
11-
items: [
12-
{
13-
type: "autogenerated",
14-
dirName: "getting-started",
15-
},
16-
],
17-
},
18-
{
19-
type: "category",
20-
label: "Concepts",
21-
collapsed: false,
22-
items: [
23-
{
24-
type: "autogenerated",
25-
dirName: "concepts",
26-
},
27-
],
28-
},
29-
{
30-
type: "category",
31-
label: "Guides",
32-
collapsed: false,
33-
items: [
34-
{
35-
type: "autogenerated",
36-
dirName: "guides",
37-
},
38-
],
39-
},
40-
{
41-
type: "category",
42-
label: "Advanced guides",
43-
items: [
44-
{
45-
type: "autogenerated",
46-
dirName: "advanced-guides",
47-
},
48-
],
49-
},
50-
{
51-
type: "category",
52-
label: "Examples",
53-
items: [
54-
{
55-
type: "autogenerated",
56-
dirName: "examples",
57-
},
58-
],
59-
},
60-
{
61-
type: "category",
62-
label: "Publishing",
63-
items: [{ type: "autogenerated", dirName: "publishing" }],
64-
},
65-
{ type: "doc", id: "manifest-reference" },
66-
{
67-
type: "category",
68-
label: "API reference",
69-
collapsed: true,
70-
items: [
71-
{ type: "doc", id: "api/overview" },
72-
{
73-
type: "category",
74-
label: "All classes",
75-
items: [{ type: "autogenerated", dirName: "api/classes" }],
76-
},
77-
{
78-
type: "category",
79-
label: "All enums",
80-
items: [{ type: "autogenerated", dirName: "api/enums" }],
81-
},
82-
{
83-
type: "category",
84-
label: "All functions",
85-
items: [{ type: "autogenerated", dirName: "api/functions" }],
86-
},
87-
{
88-
type: "category",
89-
label: "All interfaces",
90-
items: [{ type: "autogenerated", dirName: "api/interfaces" }],
91-
},
92-
{
93-
type: "category",
94-
label: "All types",
95-
items: [{ type: "autogenerated", dirName: "api/types" }],
96-
},
97-
],
98-
},
99-
{
100-
type: "doc",
101-
id: "contribute",
4+
type: "autogenerated",
5+
dirName: ".",
1026
},
1037
],
1048
};

0 commit comments

Comments
 (0)