2023-04-19 11:47:23 +03:00
|
|
|
/**
|
|
|
|
* Creating a sidebar enables you to:
|
|
|
|
- create an ordered group of docs
|
|
|
|
- render a sidebar for each doc of that group
|
|
|
|
- provide next/previous navigation
|
|
|
|
|
|
|
|
The sidebars can be generated from the filesystem, or explicitly defined here.
|
|
|
|
|
|
|
|
Create as many sidebars as you want.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// @ts-check
|
|
|
|
|
2023-09-29 18:50:21 +03:00
|
|
|
const backToHomeLink = {
|
|
|
|
/** @type {"ref"} */
|
|
|
|
type: "ref",
|
|
|
|
id: "homepage",
|
|
|
|
label: "Back to home",
|
|
|
|
className: "menu__list-item--home",
|
|
|
|
customProps: {
|
|
|
|
icon: "TbArrowBackUp",
|
|
|
|
iconSize: 20,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2023-04-19 11:47:23 +03:00
|
|
|
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
|
|
|
const sidebars = {
|
2023-11-23 00:35:34 +03:00
|
|
|
docsSidebar: [{ type: "autogenerated", dirName: "." }],
|
2023-10-08 14:21:54 +03:00
|
|
|
frontendSidebar: [
|
2023-09-29 18:50:21 +03:00
|
|
|
backToHomeLink,
|
2023-10-08 14:21:54 +03:00
|
|
|
{ type: "autogenerated", dirName: "contributor/frontend" },
|
|
|
|
],
|
|
|
|
backendSidebar: [
|
|
|
|
backToHomeLink,
|
|
|
|
{ type: "autogenerated", dirName: "contributor/server" },
|
2023-09-29 18:50:21 +03:00
|
|
|
],
|
2023-11-23 00:35:34 +03:00
|
|
|
userSidebar: [
|
|
|
|
{ type: "autogenerated", dirName: "user-guide" },
|
|
|
|
],
|
|
|
|
uiDocsSidebar: [
|
|
|
|
{ type: "autogenerated", dirName: "contributor/frontend/ui-components" },
|
|
|
|
],
|
2023-04-19 11:47:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = sidebars;
|