-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebars.js
45 lines (38 loc) · 1.11 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
// @ts-nocheck
const apiSidebar = require("./docs/api/sidebar.js").filter((item) => item.id !== "api/introduction");
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
allSidebar: [{ type: "autogenerated", dirName: "." }],
embedSidebar: [
{
type: "autogenerated",
dirName: "embed",
},
],
emailVerificationLibrarySidebar: [
{
type: "autogenerated",
dirName: "email-verification-library",
},
],
openApiSidebar: [
{
type: "category",
label: "API Reference",
link: {
type: "generated-index",
title: "API Reference",
description: "Welcome to the Pingback API documentation! Let's get started:",
slug: "api",
},
items: [
{ type: "doc", id: "api/introduction" }, // Ensure 'Introduction' is first
{ type: "doc", id: "api/glossary", label: "Glossary" },
{ type: "doc", id: "api/errors", label: "Errors" },
...apiSidebar,
],
},
],
};
module.exports = sidebars;