-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebars.ts
More file actions
52 lines (49 loc) · 1.33 KB
/
sidebars.ts
File metadata and controls
52 lines (49 loc) · 1.33 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
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
const sidebars: SidebarsConfig = {
docs: [
"intro",
"getting-started",
{
type: "category",
label: "Connect SDK",
link: { type: "doc", id: "connect/overview" },
collapsed: false,
items: [
"connect/quickstart",
"connect/webhooks-claim",
"connect/webhooks-crawl",
"connect/webhook-security",
"connect/webhook-examples",
],
},
{
type: "category",
label: "REST API",
link: { type: "doc", id: "api/overview" },
collapsed: false,
items: [
"api/authentication",
"api/pagination",
"api/security",
"api/ssh-keys",
"api/gpg-keys",
"api/date-ranges",
],
},
],
// Generated by docusaurus-plugin-openapi-docs at build time
// (runs in `prebuild` / `prestart`). The plugin writes
// `docs/api-reference/sidebar.ts`; we import it here.
apiReference: requireSidebarOrEmpty("./docs/api-reference/sidebar.ts"),
// Generated by scripts/clone-sdk-docs.sh at build time
// (also runs in `prebuild` / `prestart`).
sdk: requireSidebarOrEmpty("./docs/sdk/sidebar.ts"),
};
function requireSidebarOrEmpty(path: string) {
try {
return require(path);
} catch {
return [];
}
}
export default sidebars;