-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathsidebars.js
115 lines (109 loc) · 3.23 KB
/
sidebars.js
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
const { title, ref } = require("./sidebars/utils");
const { buildingApps } = require("./sidebars/building-apps");
const { appStore } = require("./sidebars/app-store");
const { coreConcepts } = require("./sidebars/core-concepts");
const { community } = require("./sidebars/community");
const { selfHosting } = require("./sidebars/self-hosting");
const { extending } = require("./sidebars/extending");
const { graphqlSidebar } = require("./sidebars/graphql");
const { cloudSidebar } = require("./sidebars/cloud");
const { upgradeGuidesSidebar } = require("./sidebars/upgrade-guides");
const backToHome = {
type: "ref",
id: "index",
label: "<- Back to home",
className: "menu__backlink",
customProps: {
sidebar_is_backlink: true,
sidebar_icon: "back-arrow",
},
};
module.exports = {
main: [
{
type: "doc",
id: "index",
label: "Overview",
customProps: {
icon: "home",
},
},
{
type: "category",
label: "Quickstart",
items: [
"quickstart/cloud",
"quickstart/running-locally",
"quickstart/api",
"quickstart/storefront",
],
customProps: {
icon: "play",
},
},
{
type: "category",
label: "Why Saleor",
items: [
"overview/why-saleor/headless",
"overview/why-saleor/composable",
"overview/why-saleor/extensibility",
"overview/why-saleor/open-source",
"overview/why-saleor/graphql",
"overview/why-saleor/saas-self-host",
"overview/why-saleor/scalable",
"overview/why-saleor/multi-market",
],
customProps: {
icon: "star",
},
},
title("Product"),
ref("cloud/overview", "Cloud", "cloud"),
ref("developer/index", "Core Concepts", "guides"),
title("API"),
ref("api-reference/api-reference", "API Reference", "api"),
ref("api-usage/overview", "GraphQL", "graphql"),
title("Customizing"),
ref("developer/app-store/overview", "Apps and Integrations", "apps"),
ref("developer/extending/apps/overview", "Building Apps", "buildApp"),
ref("developer/extending/overview", "Extending", "cli"),
title("Additional Resources"),
ref("setup/overview", "Self-hosting", "selfHost"),
ref("developer/community/contributing", "Community", "community"),
ref("upgrade-guides/index", "Upgrade Guides", "guides"),
ref("security/index", "Security", "shield"),
{
type: "link",
label: "Report an Issue",
href: "https://github.com/saleor/saleor-docs/issues/new",
customProps: {
icon: "feedback",
},
},
{
type: "link",
label: "Join Discord",
href: "https://discord.com/invite/H52JTZAtSH",
customProps: {
icon: "discord",
},
},
],
concepts: [backToHome, ...coreConcepts],
appStore: [backToHome, ...appStore],
buildingApps: [backToHome, ...buildingApps],
graphql: [backToHome, ...graphqlSidebar],
api: [
backToHome,
{
type: "autogenerated",
dirName: "api-reference",
},
],
extending: [backToHome, ...extending],
selfHosting: [backToHome, ...selfHosting],
community: [backToHome, ...community],
cloud: [backToHome, ...cloudSidebar],
upgrade: [backToHome, ...upgradeGuidesSidebar],
};