-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.config.ts
More file actions
52 lines (46 loc) · 1.17 KB
/
Copy pathmenu.config.ts
File metadata and controls
52 lines (46 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Menu Order Configuration
*
* Define the order of items in the sidebar navigation.
* Items not listed here will appear at the end in alphabetical order.
*
* Structure:
* - Top-level array defines the order of root items (directories and files)
* - For directories, use an object with `name` and `children` to define child order
* - Use string for files or directories without specific child ordering
*
* Example:
* [
* "index", // Root file
* "getting-started", // Root file
* {
* name: "guides",
* children: ["introduction", "advanced"]
* },
* "reference" // Directory with default alphabetical child ordering
* ]
*/
export type MenuOrderItem =
| string
| {
name: string;
children?: MenuOrderItem[];
};
export const menuOrder: MenuOrderItem[] = [
// Introduction first
"index",
// Getting started guide
"getting-started",
// Guides section
{
name: "guides",
children: ["writing-markdown", "customization", "menu-configuration", "deployment"],
},
// Reference section
{
name: "reference",
children: ["keyboard-shortcuts", "faq"],
},
// Notes section last
"notes",
];